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