Lines Matching refs:x
60 f32 x; member
98 explicit VEC3(const f32* p) { x = p[0]; y = p[1]; z = p[2]; } in VEC3()
100 VEC3(const VEC3_& v) { x = v.x; y = v.y; z = v.z; } in VEC3()
102 VEC3(f32 fx, f32 fy, f32 fz) { x = fx; y = fy; z = fz; } in VEC3()
110 operator f32*() { return &x; }
112 operator const f32*() const { return &x; }
126 self_type operator - () const { return self_type(-x, -y, -z); }
222 void Set(f32 fx, f32 fy, f32 fz) { x = fx; y = fy; z = fz; } in Set()
225 void Set(const self_type& value) { x = value.x; y = value.y; z = value.z; } in Set()
233 bool operator == (const self_type& rhs) const { return x == rhs.x && y == rhs.y && z == rhs.z; }
236 bool operator != (const self_type& rhs) const { return x != rhs.x || y != rhs.y || z != rhs.z; }
270 pOut->x = p1->x + p2->x; in VEC3Add()
289 pOut->x = p1->x - p2->x; in VEC3Sub()
307 pOut->x = p1->x * p2->x; in VEC3Mult()
325 pOut->x = scale * p->x; in VEC3Scale()
344 pOut->x = p1->x + t * (p2->x - p1->x); in VEC3Lerp()
361 return p1->x * p2->x + p1->y * p2->y + p1->z * p2->z; in VEC3Dot()
375 return p->x * p->x + p->y * p->y + p->z * p->z; in VEC3SquareLen()