Astra SDK  v2.1.3
Public 成员函数 | 静态 Public 成员函数 | 友元 | 所有成员列表
astra::Vector3f结构体 参考

Represents a float 3d vector 更多...

#include <Vector3f.hpp>

类 astra::Vector3f 继承关系图:
astra_vector3f_t

Public 成员函数

 Vector3f (const astra_vector3f_t &v)
 
Vector3foperator= (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
 
Vector3foperator+= (const Vector3f &rhs)
 
Vector3foperator-= (const Vector3f &rhs)
 
Vector3foperator*= (const float &rhs)
 
Vector3foperator/= (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


该结构体的文档由以下文件生成: