Lines Matching defs:VEC2
54 struct VEC2 : public VEC2_ struct
60 static const VEC2& Zero() in Zero() argument
68 static const VEC2& One() in One() argument
75 typedef VEC2 self_type; // argument
84 VEC2() {} in VEC2() argument
86 explicit VEC2(const f32* p) { x = p[0]; y = p[1]; } in VEC2() argument
88 VEC2(const VEC2_& v) { x = v.x; y = v.y; } in VEC2() argument
90 VEC2(f32 fx, f32 fy) { x = fx; y = fy; } in VEC2() argument
127 self_type& Lerp(const VEC2& lhs, const VEC2& rhs, f32 t) in Lerp() argument
136 f32 Dot(const VEC2& vec) const in Dot() argument
160 self_type& SafeNormalize(const VEC2& alt) in SafeNormalize() argument
168 f32 DistanceSquare(const VEC2& vec) in DistanceSquare() argument
177 self_type& Maximize(const VEC2& lhs, const VEC2& rhs) in Maximize() argument
186 self_type& Minimize(const VEC2& lhs, const VEC2& rhs) in Minimize() argument
213 bool IsZero() const { return VEC2IsZero(this); } in IsZero() argument
220 typedef struct VEC2 Vector2; argument