19#if defined(JPH_USE_SSE)
21#elif defined(JPH_USE_NEON)
24 using Type =
struct {
float mData[4]; };
54 template <const
int Scale>
102#if defined(JPH_USE_SSE)
104 JPH_INLINE float GetY()
const {
return mF32[1]; }
105 JPH_INLINE float GetZ()
const {
return mF32[2]; }
106 JPH_INLINE float GetW()
const {
return mF32[3]; }
107#elif defined(JPH_USE_NEON)
185 template<u
int32 SwizzleX, u
int32 SwizzleY, u
int32 SwizzleZ, u
int32 SwizzleW>
unsigned int uint
Definition Core.h:439
#define JPH_NAMESPACE_END
Definition Core.h:367
#define JPH_NAMESPACE_BEGIN
Definition Core.h:361
DVec3 operator*(double inV1, DVec3Arg inV2)
Definition DVec3.inl:447
#define JPH_ASSERT(...)
Definition IssueReporting.h:33
AllocateFunction Allocate
Definition Memory.cpp:59
#define JPH_OVERRIDE_NEW_DELETE
Macro to override the new and delete functions.
Definition Memory.h:29
JPH_INLINE float Tan(float inX)
Tangent of x (input in radians)
Definition Trigonometry.h:28
JPH_INLINE float ACos(float inX)
Definition Trigonometry.h:42
JPH_INLINE float ASin(float inX)
Definition Trigonometry.h:35
JPH_INLINE float ATan(float inX)
Arc tangent of x (returns value in the range [-PI / 2, PI / 2])
Definition Trigonometry.h:48
Class that holds 4 float values. Convert to Vec4 to perform calculations.
Definition Float4.h:11
Vec4()=default
Constructor.
JPH_INLINE void SetW(float inW)
Definition Vec4.h:123
JPH_INLINE float GetW() const
Definition Vec4.h:116
JPH_INLINE Vec4(Type inRHS)
Definition Vec4.h:33
JPH_INLINE void SetZ(float inZ)
Definition Vec4.h:122
Vec4(const Vec4 &inRHS)=default
static JPH_INLINE Vec4 sGatherFloat4(const float *inBase, UVec4Arg inOffsets)
Gather 4 floats from memory at inBase + inOffsets[i] * Scale.
JPH_INLINE void SetY(float inY)
Definition Vec4.h:121
JPH_INLINE void SetX(float inX)
Set individual components.
Definition Vec4.h:120
JPH_INLINE float GetX() const
Get individual components.
Definition Vec4.h:113
JPH_INLINE Vec4 Swizzle() const
Swizzle the elements in inV.
struct { float mData[4];} Type
Definition Vec4.h:24
Type mValue
Definition Vec4.h:274
JPH_INLINE float GetZ() const
Definition Vec4.h:115
JPH_INLINE void Set(float inX, float inY, float inZ, float inW)
Set all components.
Definition Vec4.h:126
JPH_INLINE float GetY() const
Definition Vec4.h:114