![]() |
CONFIG LIB
1.5
Configuration Files Library (by TGG 2020)
|
Vector 3D class - vector manipulation. More...
#include <vector3d.h>
Public Member Functions | |
VECTOR_3D (void) | |
deafult constructor | |
VECTOR_3D (const VECTOR_3D &v) | |
constructor that copies coordiantes from another vector | |
VECTOR_3D (double xp, double yp, double zp) | |
constructor that copies coordiantes from three variables | |
VECTOR_3D (double a[]) | |
constructor that copies coordiantes from the array | |
VECTOR_3D & | operator= (const VECTOR_3D &v) |
assignment operator | |
double | Len (void) const |
the value of the vector | |
double | LenXY (void) const |
the value of the 2D vector in XY plane | |
double | LenXZ (void) const |
the value of the 2D vector in XZ plane | |
double | LenYZ (void) const |
the value of the 2D vector in YZ plane | |
double | Square (void) const |
the square of the vector value | |
double | Normalize (void) |
normalizes the vector to unit - coordiantes are divided by the vector value, returnes the vector value (length) | |
void | GetFrom (double xp, double yp, double zp) |
sets coordinates from three variables | |
void | GetFrom (double a[]) |
sets coordinates from the aray | |
void | PutTo (double &xp, double &yp, double &zp) |
copies coordinates to three variables | |
void | PutTo (double a[]) |
copies coordinates to the array | |
void | AddTo (double &xp, double &yp, double &zp) |
adds coordinates to three variables | |
void | AddTo (double a[]) |
adds coordinates to the array | |
void | Set0 (void) |
resets coordinates to zero | |
bool | Isnan (void) |
determines if any coordinate of given vector is a not-a-number (NaN) value. | |
void | rotX (double alpha) |
Rotating functions rotates the vector relative to the X axis by an alpha[rad] angle | |
void | rotY (double alpha) |
rotates the vector relative to the Y axis by an alpha[rad] angle | |
void | rotZ (double alpha) |
rotates the vector relative to the Z axis by an alpha[rad] angle | |
void | rotdX (double alfa) |
rotates the vector relative to the X axis by an alpha[deg] angle (precise values for 0,90,180,270 deg) | |
void | rotdY (double alfa, double dX=0.) |
rotates the vector relative to the Y axis (shifted by dX longwise X) by an alpha[deg] angle (precise values for 0,90,180,270 deg) | |
void | rotdZ (double alfa) |
rotates the vector relative to the Z axis by an alpha[deg] angle (precise values for 0,90,180,270 deg) | |
Public Attributes | |
double | x |
x coordinate | |
double | y |
y coordinate | |
double | z |
z coordinate | |
Vector 3D class - vector manipulation.
Definition at line 33 of file vector3d.h.