46 #ifndef AI_VECTOR2D_H_INC 47 #define AI_VECTOR2D_H_INC 55 #include "./Compiler/pushpack1.h" 63 template <
typename TReal>
68 aiVector2t () : x(), y() {}
69 aiVector2t (TReal _x, TReal _y) : x(_x), y(_y) {}
70 explicit aiVector2t (TReal _xyz) : x(_xyz), y(_xyz) {}
71 aiVector2t (
const aiVector2t& o) : x(o.x), y(o.y) {}
75 void Set( TReal pX, TReal pY);
76 TReal SquareLength()
const ;
77 TReal Length()
const ;
78 aiVector2t& Normalize();
82 const aiVector2t& operator += (
const aiVector2t& o);
83 const aiVector2t& operator -= (
const aiVector2t& o);
84 const aiVector2t& operator *= (TReal f);
85 const aiVector2t& operator /= (TReal f);
87 TReal operator[](
unsigned int i)
const;
88 TReal& operator[](
unsigned int i);
90 bool operator== (
const aiVector2t& other)
const;
91 bool operator!= (
const aiVector2t& other)
const;
93 bool Equal(
const aiVector2t& other, TReal
epsilon = 1
e-6)
const;
95 aiVector2t& operator= (TReal f);
96 const aiVector2t SymMul(
const aiVector2t& o);
98 template <
typename TOther>
99 operator aiVector2t<TOther> ()
const;
112 #endif // __cplusplus 114 #include "./Compiler/poppack1.h" 116 #endif // AI_VECTOR2D_H_INC Represents a two-dimensional vector.
Definition: vector2.h:108
Assimp build configuration setup.
GLM_FUNC_DECL GLM_CONSTEXPR genType epsilon()
Return the epsilon constant for floating point types.
Definition: scalar_constants.inl:6
GLM_FUNC_DECL GLM_CONSTEXPR genType e()
Return e constant.
Definition: constants.inl:102