12JPH_INLINE
float Sin(
float inX)
20JPH_INLINE
float Cos(
float inX)
28JPH_INLINE
float Tan(
float inX)
35JPH_INLINE
float ASin(
float inX)
42JPH_INLINE
float ACos(
float inX)
60 float abs_x = min(abs(inX), 1.0f);
61 float val = sqrt(1.0f - abs_x) * (JPH_PI / 2 - 0.175394f * abs_x);
64 return inX < 0? JPH_PI - val : val;
68JPH_INLINE
float ATan(
float inX)
74JPH_INLINE
float ATan2(
float inY,
float inX)
#define JPH_NAMESPACE_END
Definition Core.h:379
#define JPH_NAMESPACE_BEGIN
Definition Core.h:373
JPH_INLINE float Tan(float inX)
Tangent of x (input in radians)
Definition Trigonometry.h:28
JPH_INLINE float ACosApproximate(float inX)
An approximation of ACos, max error is 4.2e-3 over the entire range [-1, 1], is approximately 2....
Definition Trigonometry.h:48
JPH_INLINE float Cos(float inX)
Cosine of x (input in radians)
Definition Trigonometry.h:20
JPH_INLINE float ACos(float inX)
Definition Trigonometry.h:42
JPH_INLINE float ATan2(float inY, float inX)
Arc tangent of y / x using the signs of the arguments to determine the correct quadrant (returns valu...
Definition Trigonometry.h:74
JPH_NAMESPACE_BEGIN JPH_INLINE float Sin(float inX)
Sine of x (input in radians)
Definition Trigonometry.h:12
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:68
Vec4 ATan() const
Calculate the arc tangent for each element of this vector (returns value in the range [-PI / 2,...
Definition Vec4.inl:914
static Vec4 sATan2(Vec4Arg inY, Vec4Arg inX)
Calculate the arc tangent of y / x using the signs of the arguments to determine the correct quadrant...
Definition Vec4.inl:948
Vec4 ASin() const
Definition Vec4.inl:873
Vec4 Tan() const
Calculate the tangent for each element of this vector (input in radians)
Definition Vec4.inl:840
JPH_INLINE float GetX() const
Get individual components.
Definition Vec4.h:113
Vec4 ACos() const
Definition Vec4.inl:908
static JPH_INLINE Vec4 sReplicate(float inV)
Replicate inV across all components.
Definition Vec4.inl:74
void SinCos(Vec4 &outSin, Vec4 &outCos) const
Calculate the sine and cosine for each element of this vector (input in radians)
Definition Vec4.inl:778