@@ -264,7 +264,7 @@ inline void LLVector3::set(const LLVector3& vec)
264
264
265
265
inline void LLVector3::set (const F32* vec)
266
266
{
267
- set (vec[0 ], vec[1 ], vec[2 ]);
267
+ set (vec[VX ], vec[VY ], vec[VZ ]);
268
268
}
269
269
270
270
inline void LLVector3::set (const glm::vec4& vec)
@@ -343,7 +343,7 @@ inline F32 LLVector3::magVecSquared() const
343
343
return lengthSquared ();
344
344
}
345
345
346
- inline bool LLVector3::inRange ( F32 min, F32 max ) const
346
+ inline bool LLVector3::inRange (F32 min, F32 max) const
347
347
{
348
348
return mV [VX] >= min && mV [VX] <= max &&
349
349
mV [VY] >= min && mV [VY] <= max &&
@@ -369,7 +369,7 @@ inline F32 operator*(const LLVector3& a, const LLVector3& b)
369
369
370
370
inline LLVector3 operator %(const LLVector3& a, const LLVector3& b)
371
371
{
372
- return LLVector3 ( a.mV [VY]*b.mV [VZ] - b.mV [VY]*a.mV [VZ], a.mV [VZ]*b.mV [VX] - b.mV [VZ]*a.mV [VX], a.mV [VX]*b.mV [VY] - b.mV [VX]*a.mV [VY] );
372
+ return LLVector3 (a.mV [VY]*b.mV [VZ] - b.mV [VY]*a.mV [VZ], a.mV [VZ]*b.mV [VX] - b.mV [VZ]*a.mV [VX], a.mV [VX]*b.mV [VY] - b.mV [VX]*a.mV [VY]);
373
373
}
374
374
375
375
inline LLVector3 operator /(const LLVector3& a, F32 k)
@@ -429,7 +429,7 @@ inline const LLVector3& operator-=(LLVector3& a, const LLVector3& b)
429
429
430
430
inline const LLVector3& operator %=(LLVector3& a, const LLVector3& b)
431
431
{
432
- LLVector3 ret ( a.mV [VY]*b.mV [VZ] - b.mV [VY]*a.mV [VZ], a.mV [VZ]*b.mV [VX] - b.mV [VZ]*a.mV [VX], a.mV [VX]*b.mV [VY] - b.mV [VX]*a.mV [VY]);
432
+ LLVector3 ret (a.mV [VY]*b.mV [VZ] - b.mV [VY]*a.mV [VZ], a.mV [VZ]*b.mV [VX] - b.mV [VZ]*a.mV [VX], a.mV [VX]*b.mV [VY] - b.mV [VX]*a.mV [VY]);
433
433
a = ret;
434
434
return a;
435
435
}
@@ -477,7 +477,7 @@ inline F32 dist_vec(const LLVector3& a, const LLVector3& b)
477
477
F32 x = a.mV [VX] - b.mV [VX];
478
478
F32 y = a.mV [VY] - b.mV [VY];
479
479
F32 z = a.mV [VZ] - b.mV [VZ];
480
- return sqrt ( x*x + y*y + z*z );
480
+ return sqrt (x*x + y*y + z*z);
481
481
}
482
482
483
483
inline F32 dist_vec_squared (const LLVector3& a, const LLVector3& b)
0 commit comments