![]() |
pCon.planner Plugin SDK
Version 8.9
|
A three dimensional float vector or point. More...
Public Member Functions | |
GeVec3f (float x, float y, float z) | |
Constructor. More... | |
GeVec3f (float v) | |
Initializes x, y and z with same value. More... | |
GeVec3f | Normalized () |
Returns a new vector with normalized length. More... | |
float | DotProduct (GeVec3f v) |
Returns the dot product of this vector with another vector. More... | |
GeVec3f | CrossProduct (GeVec3f v) |
Returns the cross product of this vector with another vector. More... | |
bool | IsSame (GeVec3f other, float tol) |
Returns true if this vector equals another vector using a tolerance. More... | |
GeVec3d | ToVec3d () |
Converts this vector to GeVec3d. More... | |
Public Attributes | |
float | x |
X coordinate. More... | |
float | y |
Y coordinate. More... | |
float | z |
Z coordinate. More... | |
Properties | |
float | Length [get] |
Returns the length of the vector. More... | |
float | Length2 [get] |
Returns the squared length of the vector. More... | |
A three dimensional float vector or point.
X3g::Plugin::GeVec3f::GeVec3f | ( | float | x, |
float | y, | ||
float | z | ||
) |
Constructor.
X3g::Plugin::GeVec3f::GeVec3f | ( | float | v) |
Initializes x, y and z with same value.
Returns the cross product of this vector with another vector.
float X3g::Plugin::GeVec3f::DotProduct | ( | GeVec3f | v) |
Returns the dot product of this vector with another vector.
bool X3g::Plugin::GeVec3f::IsSame | ( | GeVec3f | other, |
float | tol | ||
) |
Returns true if this vector equals another vector using a tolerance.
GeVec3f X3g::Plugin::GeVec3f::Normalized | ( | ) |
Returns a new vector with normalized length.
float X3g::Plugin::GeVec3f::x |
X coordinate.
float X3g::Plugin::GeVec3f::y |
Y coordinate.
float X3g::Plugin::GeVec3f::z |
Z coordinate.
|
get |
Returns the length of the vector.
|
get |
Returns the squared length of the vector.