21#if defined(JPH_USE_SSE)
23#elif defined(JPH_USE_NEON)
107 JPH_EXPORT static const std::vector<Vec3> sUnitSphere;
110 template <
class Random>
114#if defined(JPH_USE_SSE)
116 JPH_INLINE float GetY()
const {
return mF32[1]; }
117 JPH_INLINE float GetZ()
const {
return mF32[2]; }
118#elif defined(JPH_USE_NEON)
198 template<u
int32 SwizzleX, u
int32 SwizzleY, u
int32 SwizzleZ>
211 JPH_INLINE int GetLowestComponentIndex()
const;
214 JPH_INLINE int GetHighestComponentIndex()
const;
#define JPH_EXPORT
Definition Core.h:227
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
const Vec3 Vec3Arg
Definition MathTypes.h:20
AllocateFunction Allocate
Definition Memory.cpp:59
#define JPH_OVERRIDE_NEW_DELETE
Macro to override the new and delete functions.
Definition Memory.h:29
Class that holds 3 floats. Used as a storage class. Convert to Vec3 for calculations.
Definition Float3.h:13
static JPH_INLINE Type sFixW(Type inValue)
Internal helper function that ensures that the Z component is replicated to the W component to preven...
Vec4::Type Type
Definition Vec3.h:26
static JPH_INLINE Vec3 sAxisX()
Vectors with the principal axis.
Definition Vec3.h:52
JPH_INLINE void SetComponent(uint inCoordinate, float inValue)
Set float component by index.
Definition Vec3.h:140
Vec3(const Vec3 &inRHS)=default
static JPH_INLINE Vec3 sAxisY()
Definition Vec3.h:53
JPH_INLINE float GetX() const
Get individual components.
Definition Vec3.h:123
JPH_INLINE void SetY(float inY)
Definition Vec3.h:130
JPH_INLINE Vec3(Type inRHS)
Definition Vec3.h:37
JPH_INLINE void SetZ(float inZ)
Definition Vec3.h:131
JPH_INLINE void CheckW() const
Internal helper function that checks that W is equal to Z, so e.g. dividing by it should not generate...
static JPH_INLINE Vec3 sAxisZ()
Definition Vec3.h:54
JPH_INLINE void SetX(float inX)
Set individual components.
Definition Vec3.h:129
Type mValue
Definition Vec3.h:285
JPH_INLINE float GetY() const
Definition Vec3.h:124
JPH_INLINE void Set(float inX, float inY, float inZ)
Set all components.
Definition Vec3.h:134
JPH_INLINE float GetZ() const
Definition Vec3.h:125
Vec3()=default
Constructor.
JPH_INLINE Vec3 Swizzle() const
Swizzle the elements in inV.
struct { float mData[4];} Type
Definition Vec4.h:24