46 #ifndef AI_VECTOR3D_H_INC 47 #define AI_VECTOR3D_H_INC 59 template<
typename TReal>
class aiMatrix3x3t;
60 template<
typename TReal>
class aiMatrix4x4t;
64 template <
typename TReal>
68 aiVector3t() : x(), y(), z() {}
69 aiVector3t(TReal _x, TReal _y, TReal _z) : x(_x), y(_y), z(_z) {}
70 explicit aiVector3t (TReal _xyz ) : x(_xyz), y(_xyz), z(_xyz) {}
71 aiVector3t(
const aiVector3t& o ) : x(o.x), y(o.y), z(o.z) {}
76 const aiVector3t& operator += (
const aiVector3t& o);
77 const aiVector3t& operator -= (
const aiVector3t& o);
78 const aiVector3t& operator *= (TReal f);
79 const aiVector3t& operator /= (TReal f);
82 aiVector3t& operator *= (
const aiMatrix3x3t<TReal>& mat);
83 aiVector3t& operator *= (
const aiMatrix4x4t<TReal>& mat);
86 TReal operator[](
unsigned int i)
const;
87 TReal& operator[](
unsigned int i);
90 bool operator== (
const aiVector3t& other)
const;
91 bool operator!= (
const aiVector3t& other)
const;
92 bool operator < (
const aiVector3t& other)
const;
94 bool Equal(
const aiVector3t& other, TReal
epsilon = 1
e-6)
const;
96 template <
typename TOther>
97 operator aiVector3t<TOther> ()
const;
104 void Set( TReal pX, TReal pY, TReal pZ);
108 TReal SquareLength()
const;
112 TReal Length()
const;
116 aiVector3t& Normalize();
119 aiVector3t& NormalizeSafe();
125 const aiVector3t SymMul(
const aiVector3t& o);
139 #endif // __cplusplus 143 #endif // __cplusplus 145 #endif // AI_VECTOR3D_H_INC Assimp build configuration setup.
GLM_FUNC_DECL GLM_CONSTEXPR genType epsilon()
Return the epsilon constant for floating point types.
Definition: scalar_constants.inl:6
Definition: vector3.h:135
GLM_FUNC_DECL GLM_CONSTEXPR genType e()
Return e constant.
Definition: constants.inl:102