Point or vector. 更多...
#include <APIMath.h>
Public 成员函数 | |
Vector3 () | |
Vector3 (Real _x, Real _y, Real _z) | |
Vector3 | operator- (const Vector3 &rhv) const |
Vector3 | operator+ (const Vector3 &rhv) const |
Vector3 | operator* (const Vector3 &rhv) const |
Vector3 | operator* (Real vv) const |
Vector3 | operator/ (Real vv) const |
Real | length () const |
Real | distance (const Vector3 &pt) const |
Real | dotProduct (const Vector3 &pt) const |
Real | normalize () |
Vector3 | crossProduct (const Vector3 &pt) const |
Real | angleBetween (const Vector3 &vv) const |
Vector3 | angleBetweenZUp (Real angleZ) const |
Public 属性 | |
Real | x |
Real | y |
Real | z |
静态 Public 属性 | |
static const Vector3 | ZERO |
static const Vector3 | UNIT_X |
static const Vector3 | UNIT_Y |
static const Vector3 | UNIT_Z |
Point or vector.
|
inline |
the angle between up
angleZ | the angle rotate around z axis |
the cross product of the two points
Real AnyCAD::API::Vector3::length | ( | ) | const |
the length of the vector
Real AnyCAD::API::Vector3::normalize | ( | ) |
normalize the vector to be UNIT vector, return the original length
|
static |
|
static |
|
static |
Real AnyCAD::API::Vector3::x |
Real AnyCAD::API::Vector3::y |
Real AnyCAD::API::Vector3::z |
|
static |