|
@@ -154,6 +154,9 @@ public:
|
|
|
JPH_INLINE void SetY(double inY) { mF64[1] = inY; }
|
|
|
JPH_INLINE void SetZ(double inZ) { mF64[2] = mF64[3] = inZ; } // Assure Z and W are the same
|
|
|
|
|
|
+ /// Set all components
|
|
|
+ JPH_INLINE void Set(double inX, double inY, double inZ) { *this = DVec3(inX, inY, inZ); }
|
|
|
+
|
|
|
/// Get double component by index
|
|
|
JPH_INLINE double operator [] (uint inCoordinate) const { JPH_ASSERT(inCoordinate < 3); return mF64[inCoordinate]; }
|
|
|
|