Fovia C++ In-Process 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, VERTEX3D::y, and VERTEX3D::z.
|
inline |
Constructs a vector with the values nx, ny and nz.
nx | The x value to apply to this vector. |
ny | The y value to apply to this vector. |
nz | The z value to apply to this vector. |
|
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 |
|
inline |
Returns the result of scaling each field in this vector by the value scalar.
scalar | The value that each member in this vector will be scaled by. |
|
inline |
Returns a sring that describes this object.
double VECTOR3D::x |
double VECTOR3D::y |
double VECTOR3D::z |