Home | History | Annotate | Download | only in Tools

Lines Matching refs:PVRTVec2

40  @struct            PVRTVec2 
43 struct PVRTVec2
52 PVRTVec2() : x(0), y(0) {}
58 PVRTVec2(VERTTYPE fX, VERTTYPE fY) : x(fX), y(fY) {}
63 PVRTVec2(VERTTYPE fValue) : x(fValue), y(fValue) {}
68 PVRTVec2(const VERTTYPE* pVec) : x(pVec[0]), y(pVec[1]) {}
73 PVRTVec2(const PVRTVec3& v3Vec);
82 PVRTVec2 operator+(const PVRTVec2& rhs) const
84 PVRTVec2 out(*this);
92 PVRTVec2 operator-(const PVRTVec2& rhs) const
94 PVRTVec2 out(*this);
103 PVRTVec2& operator+=(const PVRTVec2& rhs)
115 PVRTVec2& operator-=(const PVRTVec2& rhs)
127 friend PVRTVec2 operator- (const PVRTVec2& rhs) { return PVRTVec2(-rhs.x, -rhs.y); }
135 friend PVRTVec2 operator*(const VERTTYPE lhs, const PVRTVec2& rhs)
137 PVRTVec2 out(lhs);
147 friend PVRTVec2 operator/(const VERTTYPE lhs, const PVRTVec2& rhs)
149 PVRTVec2 out(lhs);
158 PVRTVec2 operator*(const VERTTYPE& rhs) const
160 PVRTVec2 out(*this);
169 PVRTVec2& operator*=(const VERTTYPE& rhs)
181 PVRTVec2& operator*=(const PVRTVec2& rhs)
193 PVRTVec2 operator/(const VERTTYPE& rhs) const
195 PVRTVec2 out(*this);
204 PVRTVec2& operator/=(const VERTTYPE& rhs)
216 PVRTVec2& operator/=(const PVRTVec2& rhs)
224 @brief PVRTVec2 equality operator
228 bool operator==(const PVRTVec2& rhs) const
234 @brief PVRTVec2 inequality operator
238 bool operator!=(const PVRTVec2& rhs) const
268 PVRTVec2 normalize()
279 PVRTVec2 normalized() const
281 PVRTVec2 out(*this);
290 PVRTVec2 rotated90() const
292 return PVRTVec2(-y, x);
301 VERTTYPE dot(const PVRTVec2& rhs) const