17 Float4(
float inX,
float inY,
float inZ,
float inW) : x(inX), y(inY), z(inZ), w(inW) { }
19 float operator [] (
int inCoordinate)
const
22 return *(&x + inCoordinate);
31static_assert(is_trivial<Float4>(),
"Is supposed to be a trivial type!");
#define JPH_NAMESPACE_END
Definition: Core.h:367
#define JPH_NAMESPACE_BEGIN
Definition: Core.h:361
#define JPH_ASSERT(...)
Definition: IssueReporting.h:33
#define JPH_OVERRIDE_NEW_DELETE
Macro to override the new and delete functions.
Definition: Memory.h:29
Class that holds 4 float values. Convert to Vec4 to perform calculations.
Definition: Float4.h:11
float x
Definition: Float4.h:25
float y
Definition: Float4.h:26
Float4(const Float4 &inRHS)=default
float z
Definition: Float4.h:27
float w
Definition: Float4.h:28
Float4(float inX, float inY, float inZ, float inW)
Definition: Float4.h:17
JPH_OVERRIDE_NEW_DELETE Float4()=default
Intentionally not initialized for performance reasons.