Lines Matching refs:x
60 f32 x; member
90 VEC3(const f32* p) { x = p[0]; y = p[1]; z = p[2]; } in VEC3()
92 VEC3(const VEC3_& v) { x = v.x; y = v.y; z = v.z; } in VEC3()
94 VEC3(f32 fx, f32 fy, f32 fz) { x = fx; y = fy; z = fz; } in VEC3()
102 operator f32*() { return &x; }
104 operator const f32*() const { return &x; }
118 self_type operator - () const { return self_type(-x, -y, -z); }
214 void Set(f32 fx, f32 fy, f32 fz) { x = fx; y = fy; z = fz; } in Set()
217 void Set(const self_type& value) { x = value.x; y = value.y; z = value.z; } in Set()
225 bool operator == (const self_type& rhs) const { return x == rhs.x && y == rhs.y && z == rhs.z; }
228 bool operator != (const self_type& rhs) const { return x != rhs.x || y != rhs.y || z != rhs.z; }
262 pOut->x = p1->x + p2->x; in VEC3Add()
281 pOut->x = p1->x - p2->x; in VEC3Sub()
299 pOut->x = p1->x * p2->x; in VEC3Mult()
317 pOut->x = scale * p->x; in VEC3Scale()
336 pOut->x = p1->x + t * (p2->x - p1->x); in VEC3Lerp()
353 return p1->x * p2->x + p1->y * p2->y + p1->z * p2->z; in VEC3Dot()
367 return p->x * p->x + p->y * p->y + p->z * p->z; in VEC3SquareLen()