class vectorf
Declared in: Vector++.h
Library: libVector++.so
Description
The vectorf class is an implementation of a vector quantity in 3 dimensions.
Constructors
vectorf(); vectorf(float, float, float); vectorf(vectorf *)
The vectorf data type is assigned to its (x, y, z) coordinates, respectively. Passing it () results
in an assignment of (0, 0, 0). Passing it a pointer to another vector will copy the other vector
into it.
Members
float x, y, z
x, y, and z coordinates, respectively.
Operators
vectorf operator +(vectorf, vectorf) adds two vectorf quantities.
bool operator +=(vectorf &, vectorf) add/assigns the vectorf quantities
vectorf operator -(vectorf, vectorf) subtracts two vectorf quantities.
bool operator-=(vectorf &, vectorf) subtract/assigns the vectorf quantities
vectorfoperator +(vectorf) unary addition--no change
vectorfoperator -(vectorf) unary subtraction--additive inverse [0=(0, 0, 0)]
float operator*(vectorf, vectorf ) is the dot-product operator
vectorf operator *(float, vectorf) and
vectorf operator *(vectorf, float) are the scalar product operators.
bool operator *=(vectorf &, float) is the scalar product/assign operator
vectorf operator /(vectorf, float) is the scalar quotient operator
bool operator /=(vectorf, float) is the scalar quotient/assign operator
vectorf operator &(vectorf, vectorf) is the cross-product operator
vectorf operator <<(vectorf, vectorf) returns the projection. (proj_lhs (rhs))
bool operator <=(vectorf &, vectorf) projection/assigns.
N.B. the order of the projection operations may be changed in the future.