Astra SDK
v2.1.3
|
Represents a float 3d vector 更多...
#include <Vector3f.hpp>
Public 成员函数 | |
Vector3f (const astra_vector3f_t &v) | |
Vector3f & | operator= (const astra_vector3f_t &rhs) |
Vector3f (float x, float y, float z) | |
operator::astra_vector3f_t * () | |
operator const ::astra_vector3f_t * () const | |
float | length () const |
float | length_squared () const |
float | dot (const Vector3f &v) const |
Vector3f | cross (const Vector3f &v) const |
bool | is_zero () const |
Vector3f & | operator+= (const Vector3f &rhs) |
Vector3f & | operator-= (const Vector3f &rhs) |
Vector3f & | operator*= (const float &rhs) |
Vector3f & | operator/= (const float &rhs) |
Vector3f | operator- () |
静态 Public 成员函数 | |
static Vector3f | zero () |
static Vector3f | normalize (Vector3f v) |
友元 | |
bool | operator== (const Vector3f &lhs, const Vector3f &rhs) |
bool | operator!= (const Vector3f &lhs, const Vector3f &rhs) |
Vector3f | operator+ (const Vector3f &lhs, const Vector3f &rhs) |
Vector3f | operator- (const Vector3f &lhs, const Vector3f &rhs) |
Vector3f | operator* (const Vector3f &lhs, const float &rhs) |
Vector3f | operator* (const float &lhs, const Vector3f &rhs) |
Vector3f | operator/ (const Vector3f &lhs, const float &rhs) |
额外继承的成员函数 | |
Public 属性 继承自 astra_vector3f_t | |
float | x |
float | y |
float | z |
Represents a float 3d vector