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