#include <fvector.h>
Public Member Functions | |
FVector (float x, float y, float z) | |
void | clear () |
FVector | swapComponents () const |
FVector | crossProduct (const FVector &src) const |
void | rotVectAxisY (float angleDeg) |
bool | normalize (float &hyp) |
void | normalize () |
FVector | half (const FVector &v) const |
FVector | getPolarCoord () const |
float | getDistance (const FVector &src) const |
FVector | matProdRowVect (const FPose &pose) const |
FPose | getFrameTransform (const FVector &v) |
FPose | formRotXY () const |
bool | operator== (const FVector &src) const |
bool | operator!= (const FVector &src) const |
FVector | operator+ (const FVector &delta) const |
FVector | operator- (const FVector &delta) const |
const FVector | operator* (float right) const |
const FVector | operator* (const FVector &right) const |
void | operator+= (const FVector &delta) |
void | operator-= (const FVector &delta) |
void | operator+= (const FPoint &delta) |
void | operator-= (const FPoint &delta) |
Common::String | toString () const |
Public Attributes | |
float | _x |
float | _y |
float | _z |
Floating point vector class.
|
inline |
Clears the vector
FVector Titanic::FVector::swapComponents | ( | ) | const |
Returns a vector with all components of this vector circularlly rotated up 1. this x being _y, this y being _z, and this z being _x. A sign change may also be done on x/_y based on some conditions.
Calculates the cross-product between this matrix and a passed one
void Titanic::FVector::rotVectAxisY | ( | float | angleDeg | ) |
Rotate this vector about the Y axis
bool Titanic::FVector::normalize | ( | float & | hyp | ) |
Attempts to normalizes the vector so the length from origin equals 1.0 Return value is whether or not it was successful in normalizing First argument is scale value that normalizes the vector
Calculates a vector halfway between two given vectors
FVector Titanic::FVector::getPolarCoord | ( | ) | const |
Returns a vector, v, that represents a magnitude, and two angles in radians
float Titanic::FVector::getDistance | ( | const FVector & | src | ) | const |
Returns the distance between a specified point and this one
Returns a vector that is this vector on the left as a row vector times the 3x4 affine matrix on the right.
Returns a matrix that contains the frame rotation based on this vector and a vector rotation based on input vector v
FPose Titanic::FVector::formRotXY | ( | ) | const |
Constructs an affine matrix that does a x then a y axis frame rotation based on the orientation of this vector
|
inline |
Returns true if the passed vector equals this one
|
inline |
Returns true if the passed vector does not equal this one
Common::String Titanic::FVector::toString | ( | ) | const |
Converts the vector to a string