Fovia's C++ Client/Server API
|
Public Member Functions | |
VECTOR3D | add (const VECTOR3D &var) |
void | assign (const VECTOR3D ©) |
VECTOR3D | cross (const VECTOR3D &op) |
double | dot (VECTOR3D op) |
double | length () |
VECTOR3D | mul (const VECTOR3D &var) |
void | normalize () |
VECTOR3D | operator* (const double &var) |
VECTOR3D | operator* (const VECTOR3D &var) |
VECTOR3D | operator+ (const VECTOR3D &var) |
VECTOR3D & | operator+= (const VECTOR3D &r) |
VECTOR3D | operator- (const VECTOR3D &var) |
VECTOR3D & | operator= (const VECTOR3D &r) |
bool | operator== (VECTOR3D v) |
VECTOR3D | scale (const double scalar) |
VECTOR3D | sub (const VECTOR3D &var) |
std::string | toString () |
VECTOR3D () | |
VECTOR3D (const VECTOR3D ©) | |
VECTOR3D (const VERTEX3D &vtx) | |
VECTOR3D (double nx, double ny, double nz) | |
Public Attributes | |
double | x |
double | y |
double | z |
Double precision 3D vector class.
|
inline |
Constructs a new VECTOR3D object. The member fields are not initialized by this function.
|
inline |
Copies the contents of copy into this vector.
copy | the vector from which to copy values into this vector. |
References assign().
|
inline |
Utility function to convert a VERTEX3D into a VECTOR3D. x,y,z from vtx are assigned to x,y,z in this vector respectively.
vtx | The vertex from which to copy the x,y,z values. |
References VERTEX3D::x, x, VERTEX3D::y, y, VERTEX3D::z, and z.
|
inline |
|
inline |
Assigns the contents of copy to the member fields in this object.
copy | The vector from which to copy values from. |
Referenced by VECTOR3D().
|
inline |
|
inline |
|
inline |
Performs an in-place normalization of this vector. Note that unlike other vector operations, this is a mutable member function rather than one that returns the result. After this function completes, the result of the length() function on this vector should be roughly 1.0.
|
inline |
|
inline |
double VECTOR3D::x |
The x value.
Referenced by add(), cross(), dot(), length(), MATRIX44D::MATRIX44D(), mul(), MATRIX44D::mul(), normalize(), QUATD::QUATD(), QUATD::quatFromBallPoints(), QUATD::quatFromTrackBallPoints(), scale(), MATRIX44D::setOffsetVector(), MATRIX44D::setXVector(), MATRIX44D::setYVector(), MATRIX44D::setZVector(), sub(), toString(), and VECTOR3D().
double VECTOR3D::y |
The y value.
Referenced by add(), cross(), dot(), length(), MATRIX44D::MATRIX44D(), mul(), MATRIX44D::mul(), normalize(), QUATD::QUATD(), QUATD::quatFromBallPoints(), QUATD::quatFromTrackBallPoints(), scale(), MATRIX44D::setOffsetVector(), MATRIX44D::setXVector(), MATRIX44D::setYVector(), MATRIX44D::setZVector(), sub(), toString(), and VECTOR3D().
double VECTOR3D::z |
The z value.
Referenced by add(), cross(), dot(), length(), MATRIX44D::MATRIX44D(), mul(), MATRIX44D::mul(), normalize(), QUATD::QUATD(), QUATD::quatFromBallPoints(), QUATD::quatFromTrackBallPoints(), scale(), MATRIX44D::setOffsetVector(), MATRIX44D::setXVector(), MATRIX44D::setYVector(), MATRIX44D::setZVector(), sub(), toString(), and VECTOR3D().