Lines Matching refs:y

48     f32 y;  member
86 explicit VEC2(const f32* p) { x = p[0]; y = p[1]; } in VEC2()
88 VEC2(const VEC2_& v) { x = v.x; y = v.y; } in VEC2()
90 VEC2(f32 fx, f32 fy) { x = fx; y = fy; } in VEC2()
107 self_type& operator += (const self_type& rhs) { x += rhs.x; y += rhs.y; return *this; }
108 self_type& operator -= (const self_type& rhs) { x -= rhs.x; y -= rhs.y; return *this; }
109 self_type& operator *= (const self_type& rhs) { x *= rhs.x; y *= rhs.y; return *this; }
110 self_type& operator *= (f32 f) { x *= f; y *= f; return *this; }
111 self_type& operator /= (f32 f) { f32 r = 1.f / f; x *= r; y *= r; return *this; }
114 self_type operator - () const { return self_type(-x, -y); }
116 self_type operator + (const self_type& rhs) const { return self_type(x + rhs.x, y + rhs.y); }
117 self_type operator - (const self_type& rhs) const { return self_type(x - rhs.x, y - rhs.y); }
118 self_type operator * (f32 f) const { return self_type(f * x, f * y); }
119 self_type operator / (f32 f) const { f32 r = 1.f / f; return self_type(r * x, r * y); }
142 f32 LenSq() const { return x * x + y * y; } in LenSq()
145 f32 LengthSquare() const { return x * x + y * y; } in LengthSquare()
148 f32 Length() const { return FSqrt(this->x * this->x + this->y * this->y); } in Length()
198 void Set(f32 fx, f32 fy) { x = fx; y = fy; } in Set()
207 bool operator == (const self_type& rhs) const { return x == rhs.x && y == rhs.y; }
210 bool operator != (const self_type& rhs) const { return x != rhs.x || y != rhs.y; }
247 pOut->x = p1->x + p2->x; pOut->y = p1->y + p2->y; in VEC2Add()
267 pOut->x = p1->x - p2->x; pOut->y = p1->y - p2->y; in VEC2Sub()
284 pOut->y = p1->y * p2->y; in VEC2Mult()
303 pOut->x = p->x * scale; pOut->y = p->y * scale; in VEC2Scale()
323 pOut->y = p1->y + t * (p2->y - p1->y); in VEC2Lerp()
342 return p1->x * p2->x + p1->y * p2->y; in VEC2Dot()
356 return p->x * p->x + p->y * p->y; in VEC2LenSq()
367 VEC2Len(const VEC2* p) { return FSqrt(p->x * p->x + p->y * p->y); } in VEC2Len()
381 operator * (f32 f, const VEC2& rhs) { return VEC2(f * rhs.x, f * rhs.y); }