|
| | Vector (void) throw () |
| | Constructs the vector with zero values. More...
|
| |
| | Vector (float fX, float fY, float fZ=0.0f) throw () |
| | Constructs the vector with specified values. More...
|
| |
| | Vector (const Vector &vVector) throw () |
| | Copy constructor. More...
|
| |
| | Vector (const char *pVector) throw () |
| | Construct the vector from a pointer to 8bit signed data. More...
|
| |
| | Vector (const short *pVector) throw () |
| | Construct the vector from a pointer to 16bit signed data. More...
|
| |
| Vector & | Set (float fX, float fY, float fZ) throw () |
| | Sets the values of the vector elements and returns the vector. More...
|
| |
| Vector & | Clear (void) throw () |
| | Zeros all the components of the Vector, then returns it. More...
|
| |
| Vector & | Normalize (void) throw () |
| | Normalizes the vector and returns it. More...
|
| |
| Vector & | NormalizeApprox (void) throw () |
| | Normalizes the vector and returns it. More...
|
| |
| Vector | Normalized (void) const throw () |
| | Returns a normalized version of the vector, without changing this vector. More...
|
| |
| Vector & | MakeOrthogonal (const Vector &vBase) |
| | Makes this vector orthogonal to the given vBase vector and normalizes it. More...
|
| |
| Vector & | SetLength (float fLength) |
| | Sets the vector to the given length, without changing its direction. More...
|
| |
| Vector & | RotateOrthogonal (const Vector &vBase) |
| | Rotates this vector to be orthogonal to vBase without changing its length, and returns it. More...
|
| |
| float | LengthSquare (void) const |
| | Returns the square of the length of the vector. More...
|
| |
| float | Length () const throw () |
| | Returns the length of the vector. More...
|
| |
| float | Length2D () const throw () |
| | Returns the 2D length of the vector, ignoring the z element. More...
|
| |
| float | DistanceFrom (const Vector &v) const |
| | Returns the distance between two points (this and another, represented as Vector objects). More...
|
| |
| float | DistanceSquareFrom (const Vector &v) const |
| | Returns the square of the distance between two points (this and another, represented as Vector objects). More...
|
| |
| float | DistanceFromLine (const Vector &v0, const Vector &v1) const |
| | Returns the shortest distance between this point and a line defined by two other points (all points represented by vector objects). More...
|
| |
| float | DistanceFromSegment (const Vector &v0, const Vector &v1) const |
| | Returns the distance between this point and a line segment defined by the two ending points. More...
|
| |
| float | DistanceFromTriangleSquared (const Vector &v0, const Vector &v1, const Vector &v2, float *aBaryCoords=0) const |
| | Returns the squared distance from this point to the closest point on the triangle defined by v0, v1, v2. More...
|
| |
| const Vector & | Relocate2D (const Vector &v0, const Vector &v1) |
| | Converts this (2d) vector to represent itself as a linear combination of the supplied basis vectors. More...
|
| |
| void | Relocate (const Vector &v0, const Vector &v1, const Vector &v2) |
| | Converts this vector to represent itself as a linear combination of the supplied basis vectors. More...
|
| |
| bool | Relocate2DQuad (const Vector &v0, const Vector &v1, const Vector &v2, const Vector &v3) |
| | This operation calculates the baricentric coordinates inside a quad where the quad corners are v0,v1,v2,v3. More...
|
| |
| bool | RelocateQuad (const Vector &v0, const Vector &v1, const Vector &v2, const Vector &v3) |
| | This operation calculates the baricentric coordinates inside a quad where the quad corners are v0,v1,v2,v3. More...
|
| |
| float | AngleCos (const Vector &v1) const throw () |
| | Returns the cosine of the angle between this vector and the one passed in. More...
|
| |
| Vector | Minimum (const Vector &o) |
| | Returns the minimum of this and the argument vector. More...
|
| |
| Vector | Maximum (const Vector &o) |
| | Returns the maximum of this and the argument vector. More...
|
| |
| Vector | operator- (void) const throw () |
| | Returns the inverse of the vector. More...
|
| |
| Vector | operator+ (float f) const throw () |
| | Returns the sum of a vector and a scalar. More...
|
| |
| Vector | operator+ (const Vector &v) const throw () |
| | Returns the sum of two vectors. More...
|
| |
| Vector | operator- (const Vector &v) const throw () |
| | Returns the difference between two vectors/points. More...
|
| |
| Vector | operator* (const Vector &v) const throw () |
| | Returns the product of two vectors by components. More...
|
| |
| Vector | operator* (float f) const throw () |
| | Returns the product of the vector and a scalar. More...
|
| |
| Vector | operator/ (const Vector &v) const throw () |
| | Returns the quotient of two vectors by components. More...
|
| |
| Vector | operator/ (float f) const throw () |
| | Returns the quotient of a vector and a scalar. More...
|
| |
| Vector | operator* (int i) const throw () |
| | Returns the product of a vector and an integer. More...
|
| |
| Vector | operator/ (int i) const throw () |
| | Returns the quotient of a vector and an integer. More...
|
| |
| Vector | operator/ (unsigned int i) const throw () |
| | Returns the quotient of a vector and an unsigned integer. More...
|
| |
| float | operator| (const Vector &v) const throw () |
| | Returns the dot product of two vectors. More...
|
| |
| Vector | operator& (const Vector &v) const |
| | Returns the cross product of two vectors. More...
|
| |
| bool | operator== (const Vector &v) const throw () |
| | Returns true if the two vectors are identical, false otherwise. More...
|
| |
| bool | operator!= (const Vector &v) const throw () |
| | Returns true if the two vectors are different, false otherwise. More...
|
| |
| | operator bool (void) const throw () |
| | Returns true if the vector is not a zero vector, false otherwise. More...
|
| |
| bool | operator! (void) const throw () |
| | Returns true if the vector is a zero vector, false otherwise. More...
|
| |
| Vector & | operator= (const Vector &v) |
| | Sets this vector to equal another one and returns it. More...
|
| |
| Vector & | operator<< (const Vector &v) |
| | Sets this vector to equal another one and returns it. More...
|
| |
| Vector & | operator-= (const Vector &v) throw () |
| | Subtracts the component values of another vector from this one's, and returns the result. More...
|
| |
| Vector & | operator+= (const Vector &v) throw () |
| | Adds another vector to this one and returns the result. More...
|
| |
| Vector & | operator+= (const float f) throw () |
| | Adds a float to all the elements of this vector and returns the result. More...
|
| |
| Vector & | operator-= (const float f) throw () |
| | Subtracts a float to all the elements of this vector and returns the result. More...
|
| |
| Vector & | operator*= (float f) throw () |
| | Multiplies the components of the vector with a scalar value and returns the result. More...
|
| |
| Vector & | operator*= (const Vector &v) throw () |
| | Multiplies the vector with another vector by components and returns the result. More...
|
| |
| Vector & | operator/= (float f) |
| | Divides the vector by a scalar and returns the result. More...
|
| |
| float & | operator[] (int i) throw () |
| | Returns a individual components of the vector. More...
|
| |
| float & | operator[] (unsigned int i) throw () |
| | Returns a component of the vector. More...
|
| |
| | operator const float * (void) const |
| | Returns a pointer to the data of the vector. Do not delete this pointer. More...
|
| |