Ark Server API (ASA) - Wiki
Loading...
Searching...
No Matches
UnrealMathVectorConstants.h File Reference
+ Include dependency graph for UnrealMathVectorConstants.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  GlobalVectorConstants
 

Functions

FORCEINLINE constexpr VectorRegister4Double MakeVectorRegisterDoubleConstant (const VectorRegister2Double &XY, const VectorRegister2Double &ZW)
 
FORCEINLINE constexpr VectorRegister4Double MakeVectorRegisterDoubleConstant (double X, double Y, double Z, double W)
 
FORCEINLINE constexpr VectorRegister4Float MakeVectorRegisterConstant (float X, float Y, float Z, float W)
 
FORCEINLINE constexpr VectorRegister4Double MakeVectorRegisterConstant (double X, double Y, double Z, double W)
 
VectorRegister4Float GlobalVectorConstants::XYZMask ()
 
VectorRegister4Double GlobalVectorConstants::DoubleXYZMask ()
 
VectorRegister4Float GlobalVectorConstants::SignBit ()
 
VectorRegister4Float GlobalVectorConstants::SignMask ()
 
VectorRegister4Float GlobalVectorConstants::AllMask ()
 
VectorRegister4Double GlobalVectorConstants::DoubleAllMask ()
 
VectorRegister4Double GlobalVectorConstants::DoubleSignBit ()
 
VectorRegister4Double GlobalVectorConstants::DoubleSignMask ()
 
VectorRegister4Float GlobalVectorConstants::FloatInfinity ()
 
VectorRegister4Double GlobalVectorConstants::DoubleInfinity ()
 
VectorRegister4Float GlobalVectorConstants::FloatAlmostTwo ()
 
VectorRegister4Double GlobalVectorConstants::DoubleAlmostTwo ()
 

Variables

constexpr VectorRegister4Float GlobalVectorConstants::FloatOne = MakeVectorRegisterFloatConstant(1.f, 1.f, 1.f, 1.f)
 
constexpr VectorRegister4Float GlobalVectorConstants::FloatZero = MakeVectorRegisterFloatConstant(0.f, 0.f, 0.f, 0.f)
 
constexpr VectorRegister4Float GlobalVectorConstants::FloatMinusOne = MakeVectorRegisterFloatConstant(-1.f, -1.f, -1.f, -1.f)
 
constexpr VectorRegister4Float GlobalVectorConstants::Float0001 = MakeVectorRegisterFloatConstant(0.f, 0.f, 0.f, 1.f)
 
constexpr VectorRegister4Float GlobalVectorConstants::Float1000 = MakeVectorRegisterFloatConstant(1.f, 0.f, 0.f, 0.f)
 
constexpr VectorRegister4Float GlobalVectorConstants::Float1110 = MakeVectorRegisterFloatConstant(1.f, 1.f, 1.f, 0.f)
 
constexpr VectorRegister4Float GlobalVectorConstants::SmallLengthThreshold = MakeVectorRegisterFloatConstant(1.e-8f, 1.e-8f, 1.e-8f, 1.e-8f)
 
constexpr VectorRegister4Float GlobalVectorConstants::FloatOneHundredth = MakeVectorRegisterFloatConstant(0.01f, 0.01f, 0.01f, 0.01f)
 
constexpr VectorRegister4Float GlobalVectorConstants::Float111_Minus1 = MakeVectorRegisterFloatConstant( 1.f, 1.f, 1.f, -1.f )
 
constexpr VectorRegister4Float GlobalVectorConstants::FloatMinus1_111 = MakeVectorRegisterFloatConstant( -1.f, 1.f, 1.f, 1.f )
 
constexpr VectorRegister4Float GlobalVectorConstants::FloatOneHalf = MakeVectorRegisterFloatConstant( 0.5f, 0.5f, 0.5f, 0.5f )
 
constexpr VectorRegister4Float GlobalVectorConstants::FloatMinusOneHalf = MakeVectorRegisterFloatConstant( -0.5f, -0.5f, -0.5f, -0.5f )
 
constexpr VectorRegister4Float GlobalVectorConstants::KindaSmallNumber = MakeVectorRegisterFloatConstant( UE_KINDA_SMALL_NUMBER, UE_KINDA_SMALL_NUMBER, UE_KINDA_SMALL_NUMBER, UE_KINDA_SMALL_NUMBER )
 
constexpr VectorRegister4Float GlobalVectorConstants::SmallNumber = MakeVectorRegisterFloatConstant( UE_SMALL_NUMBER, UE_SMALL_NUMBER, UE_SMALL_NUMBER, UE_SMALL_NUMBER )
 
constexpr VectorRegister4Float GlobalVectorConstants::ThreshQuatNormalized = MakeVectorRegisterFloatConstant( UE_THRESH_QUAT_NORMALIZED, UE_THRESH_QUAT_NORMALIZED, UE_THRESH_QUAT_NORMALIZED, UE_THRESH_QUAT_NORMALIZED )
 
constexpr VectorRegister4Float GlobalVectorConstants::BigNumber = MakeVectorRegisterFloatConstant(UE_BIG_NUMBER, UE_BIG_NUMBER, UE_BIG_NUMBER, UE_BIG_NUMBER)
 
constexpr VectorRegister2Double GlobalVectorConstants::DoubleOne2d = MakeVectorRegister2DoubleConstant(1.0, 1.0)
 
constexpr VectorRegister4Double GlobalVectorConstants::DoubleOne = MakeVectorRegisterDoubleConstant(1.0, 1.0, 1.0, 1.0)
 
constexpr VectorRegister4Double GlobalVectorConstants::DoubleZero = MakeVectorRegisterDoubleConstant(0.0, 0.0, 0.0, 0.0)
 
constexpr VectorRegister4Double GlobalVectorConstants::DoubleMinusOne = MakeVectorRegisterDoubleConstant(-1.0, -1.0, -1.0, -1.0)
 
constexpr VectorRegister4Double GlobalVectorConstants::Double0001 = MakeVectorRegisterDoubleConstant(0.0f, 0.0, 0.0, 1.0)
 
constexpr VectorRegister4Double GlobalVectorConstants::Double1000 = MakeVectorRegisterDoubleConstant(1.0, 0.0, 0.0, 0.0)
 
constexpr VectorRegister4Double GlobalVectorConstants::Double1110 = MakeVectorRegisterDoubleConstant(1.0, 1.0, 1.0, 0.0)
 
constexpr VectorRegister4Double GlobalVectorConstants::DoubleSmallLengthThreshold = MakeVectorRegisterDoubleConstant(1.e-8, 1.e-8, 1.e-8, 1.e-8)
 
constexpr VectorRegister4Double GlobalVectorConstants::DoubleOneHundredth = MakeVectorRegisterDoubleConstant(0.01, 0.01, 0.01, 0.01)
 
constexpr VectorRegister4Double GlobalVectorConstants::Double111_Minus1 = MakeVectorRegisterDoubleConstant(1., 1., 1., -1.)
 
constexpr VectorRegister4Double GlobalVectorConstants::DoubleMinus1_111 = MakeVectorRegisterDoubleConstant(-1., 1., 1., 1.)
 
constexpr VectorRegister4Double GlobalVectorConstants::DoubleOneHalf = MakeVectorRegisterDoubleConstant(0.5, 0.5, 0.5, 0.5)
 
constexpr VectorRegister4Double GlobalVectorConstants::DoubleMinusOneHalf = MakeVectorRegisterDoubleConstant(-0.5, -0.5, -0.5, -0.5)
 
constexpr VectorRegister4Double GlobalVectorConstants::DoubleKindaSmallNumber = MakeVectorRegisterDoubleConstant(UE_DOUBLE_KINDA_SMALL_NUMBER, UE_DOUBLE_KINDA_SMALL_NUMBER, UE_DOUBLE_KINDA_SMALL_NUMBER, UE_DOUBLE_KINDA_SMALL_NUMBER)
 
constexpr VectorRegister4Double GlobalVectorConstants::DoubleSmallNumber = MakeVectorRegisterDoubleConstant(UE_DOUBLE_SMALL_NUMBER, UE_DOUBLE_SMALL_NUMBER, UE_DOUBLE_SMALL_NUMBER, UE_DOUBLE_SMALL_NUMBER)
 
constexpr VectorRegister4Double GlobalVectorConstants::DoubleThreshQuatNormalized = MakeVectorRegisterDoubleConstant(UE_DOUBLE_THRESH_QUAT_NORMALIZED, UE_DOUBLE_THRESH_QUAT_NORMALIZED, UE_DOUBLE_THRESH_QUAT_NORMALIZED, UE_DOUBLE_THRESH_QUAT_NORMALIZED)
 
constexpr VectorRegister4Double GlobalVectorConstants::DoubleBigNumber = MakeVectorRegisterDoubleConstant(UE_DOUBLE_BIG_NUMBER, UE_DOUBLE_BIG_NUMBER, UE_DOUBLE_BIG_NUMBER, UE_DOUBLE_BIG_NUMBER)
 
constexpr VectorRegister GlobalVectorConstants::Vector0001 = MakeVectorRegisterConstant(0.0, 0.0, 0.0, 1.0)
 
constexpr VectorRegister GlobalVectorConstants::Vector1110 = MakeVectorRegisterConstant(1.0, 1.0, 1.0, 0.0)
 
constexpr VectorRegister4Int GlobalVectorConstants::IntOne = MakeVectorRegisterIntConstant(1, 1, 1, 1)
 
constexpr VectorRegister4Int GlobalVectorConstants::IntZero = MakeVectorRegisterIntConstant(0, 0, 0, 0)
 
constexpr VectorRegister4Int GlobalVectorConstants::IntMinusOne = MakeVectorRegisterIntConstant(-1, -1, -1, -1)
 
constexpr VectorRegister4Float GlobalVectorConstants::QINV_SIGN_MASK = MakeVectorRegisterFloatConstant( -1.f, -1.f, -1.f, 1.f )
 
constexpr VectorRegister4Double GlobalVectorConstants::DOUBLE_QINV_SIGN_MASK = MakeVectorRegisterDoubleConstant(-1., -1., -1., 1.)
 
constexpr VectorRegister4Float GlobalVectorConstants::QMULTI_SIGN_MASK0 = MakeVectorRegisterFloatConstant( 1.f, -1.f, 1.f, -1.f )
 
constexpr VectorRegister4Float GlobalVectorConstants::QMULTI_SIGN_MASK1 = MakeVectorRegisterFloatConstant( 1.f, 1.f, -1.f, -1.f )
 
constexpr VectorRegister4Float GlobalVectorConstants::QMULTI_SIGN_MASK2 = MakeVectorRegisterFloatConstant( -1.f, 1.f, 1.f, -1.f )
 
constexpr VectorRegister4Double GlobalVectorConstants::DOUBLE_QMULTI_SIGN_MASK0 = MakeVectorRegisterDoubleConstant(1., -1., 1., -1.)
 
constexpr VectorRegister4Double GlobalVectorConstants::DOUBLE_QMULTI_SIGN_MASK1 = MakeVectorRegisterDoubleConstant(1., 1., -1., -1.)
 
constexpr VectorRegister4Double GlobalVectorConstants::DOUBLE_QMULTI_SIGN_MASK2 = MakeVectorRegisterDoubleConstant(-1., 1., 1., -1.)
 
constexpr VectorRegister4Float GlobalVectorConstants::DEG_TO_RAD = MakeVectorRegisterConstant(UE_PI/(180.f), UE_PI/(180.f), UE_PI/(180.f), UE_PI/(180.f))
 
constexpr VectorRegister4Float GlobalVectorConstants::DEG_TO_RAD_HALF = MakeVectorRegisterConstant((UE_PI/180.f)*0.5f, (UE_PI/180.f)*0.5f, (UE_PI/180.f)*0.5f, (UE_PI/180.f)*0.5f)
 
constexpr VectorRegister4Float GlobalVectorConstants::RAD_TO_DEG = MakeVectorRegisterConstant((180.f)/UE_PI, (180.f)/UE_PI, (180.f)/UE_PI, (180.f)/UE_PI)
 
constexpr VectorRegister4Double GlobalVectorConstants::DOUBLE_DEG_TO_RAD = MakeVectorRegisterConstant(UE_DOUBLE_PI/(180.), UE_DOUBLE_PI/(180.), UE_DOUBLE_PI/(180.), UE_DOUBLE_PI/(180.))
 
constexpr VectorRegister4Double GlobalVectorConstants::DOUBLE_DEG_TO_RAD_HALF = MakeVectorRegisterConstant((UE_DOUBLE_PI/180.) * 0.5, (UE_DOUBLE_PI/180.) * 0.5, (UE_DOUBLE_PI/180.) * 0.5, (UE_DOUBLE_PI/180.) * 0.5)
 
constexpr VectorRegister4Double GlobalVectorConstants::DOUBLE_RAD_TO_DEG = MakeVectorRegisterConstant((180.)/UE_DOUBLE_PI, (180.)/UE_DOUBLE_PI, (180.)/UE_DOUBLE_PI, (180.)/UE_DOUBLE_PI)
 
constexpr VectorRegister4Int GlobalVectorConstants::IntSignBit = MakeVectorRegisterIntConstant( 0x80000000, 0x80000000, 0x80000000, 0x80000000)
 
constexpr VectorRegister4Int GlobalVectorConstants::IntSignMask = MakeVectorRegisterIntConstant(~0x80000000, ~0x80000000, ~0x80000000, ~0x80000000)
 
constexpr VectorRegister4Int GlobalVectorConstants::IntAllMask = MakeVectorRegisterIntConstant( ~uint32(0), ~uint32(0), ~uint32(0), ~uint32(0))
 
constexpr VectorRegister4Float GlobalVectorConstants::Pi = MakeVectorRegisterConstant(UE_PI, UE_PI, UE_PI, UE_PI)
 
constexpr VectorRegister4Float GlobalVectorConstants::TwoPi = MakeVectorRegisterConstant(2.0f*UE_PI, 2.0f*UE_PI, 2.0f*UE_PI, 2.0f*UE_PI)
 
constexpr VectorRegister4Float GlobalVectorConstants::PiByTwo = MakeVectorRegisterConstant(0.5f*UE_PI, 0.5f*UE_PI, 0.5f*UE_PI, 0.5f*UE_PI)
 
constexpr VectorRegister4Float GlobalVectorConstants::PiByFour = MakeVectorRegisterConstant(0.25f*UE_PI, 0.25f*UE_PI, 0.25f*UE_PI, 0.25f*UE_PI)
 
constexpr VectorRegister4Float GlobalVectorConstants::OneOverPi = MakeVectorRegisterConstant(1.0f / UE_PI, 1.0f / UE_PI, 1.0f / UE_PI, 1.0f / UE_PI)
 
constexpr VectorRegister4Float GlobalVectorConstants::OneOverTwoPi = MakeVectorRegisterConstant(1.0f / (2.0f*UE_PI), 1.0f / (2.0f*UE_PI), 1.0f / (2.0f*UE_PI), 1.0f / (2.0f*UE_PI))
 
constexpr VectorRegister4Double GlobalVectorConstants::DoublePi = MakeVectorRegisterDoubleConstant(UE_DOUBLE_PI, UE_DOUBLE_PI, UE_DOUBLE_PI, UE_DOUBLE_PI)
 
constexpr VectorRegister4Double GlobalVectorConstants::DoubleTwoPi = MakeVectorRegisterDoubleConstant(2.0 * UE_DOUBLE_PI, 2.0 * UE_DOUBLE_PI, 2.0 * UE_DOUBLE_PI, 2.0 * UE_DOUBLE_PI)
 
constexpr VectorRegister4Double GlobalVectorConstants::DoublePiByTwo = MakeVectorRegisterDoubleConstant(0.5 * UE_DOUBLE_PI, 0.5 * UE_DOUBLE_PI, 0.5 * UE_DOUBLE_PI, 0.5 * UE_DOUBLE_PI)
 
constexpr VectorRegister4Double GlobalVectorConstants::DoublePiByFour = MakeVectorRegisterDoubleConstant(0.25 * UE_DOUBLE_PI, 0.25 * UE_DOUBLE_PI, 0.25 * UE_DOUBLE_PI, 0.25 * UE_DOUBLE_PI)
 
constexpr VectorRegister4Double GlobalVectorConstants::DoubleOneOverPi = MakeVectorRegisterDoubleConstant(1.0 / UE_DOUBLE_PI, 1.0 / UE_DOUBLE_PI, 1.0 / UE_DOUBLE_PI, 1.0 / UE_DOUBLE_PI)
 
constexpr VectorRegister4Double GlobalVectorConstants::DoubleOneOverTwoPi = MakeVectorRegisterDoubleConstant(1.0 / (2.0 * UE_DOUBLE_PI), 1.0 / (2.0 * UE_DOUBLE_PI), 1.0 / (2.0 * UE_DOUBLE_PI), 1.0 / (2.0 * UE_DOUBLE_PI))
 
constexpr VectorRegister4Float GlobalVectorConstants::Float255 = MakeVectorRegisterConstant(255.0f, 255.0f, 255.0f, 255.0f)
 
constexpr VectorRegister4Float GlobalVectorConstants::Float127 = MakeVectorRegisterConstant(127.0f, 127.0f, 127.0f, 127.0f)
 
constexpr VectorRegister4Float GlobalVectorConstants::FloatNeg127 = MakeVectorRegisterConstant(-127.0f, -127.0f, -127.0f, -127.0f)
 
constexpr VectorRegister4Float GlobalVectorConstants::Float360 = MakeVectorRegisterConstant(360.f, 360.f, 360.f, 360.f)
 
constexpr VectorRegister4Float GlobalVectorConstants::Float180 = MakeVectorRegisterConstant(180.f, 180.f, 180.f, 180.f)
 
constexpr VectorRegister4Double GlobalVectorConstants::Double255 = MakeVectorRegisterDoubleConstant(255.0, 255.0, 255.0, 255.0)
 
constexpr VectorRegister4Double GlobalVectorConstants::Double127 = MakeVectorRegisterDoubleConstant(127.0, 127.0, 127.0, 127.0)
 
constexpr VectorRegister4Double GlobalVectorConstants::DoubleNeg127 = MakeVectorRegisterDoubleConstant(-127.0, -127.0, -127.0, -127.0)
 
constexpr VectorRegister4Double GlobalVectorConstants::Double360 = MakeVectorRegisterDoubleConstant(360., 360., 360., 360.)
 
constexpr VectorRegister4Double GlobalVectorConstants::Double180 = MakeVectorRegisterDoubleConstant(180., 180., 180., 180.)
 
constexpr VectorRegister4Float GlobalVectorConstants::FloatNonFractional = MakeVectorRegisterConstant(UE_FLOAT_NON_FRACTIONAL, UE_FLOAT_NON_FRACTIONAL, UE_FLOAT_NON_FRACTIONAL, UE_FLOAT_NON_FRACTIONAL)
 
constexpr VectorRegister4Double GlobalVectorConstants::DoubleNonFractional = MakeVectorRegisterDoubleConstant(UE_DOUBLE_NON_FRACTIONAL, UE_DOUBLE_NON_FRACTIONAL, UE_DOUBLE_NON_FRACTIONAL, UE_DOUBLE_NON_FRACTIONAL)
 
constexpr VectorRegister4Float GlobalVectorConstants::FloatTwo = MakeVectorRegisterConstant(2.0f, 2.0f, 2.0f, 2.0f)
 
constexpr uint32 GlobalVectorConstants::AlmostTwoBits = 0x3fffffff
 
constexpr VectorRegister4Double GlobalVectorConstants::DoubleTwo = MakeVectorRegisterDoubleConstant(2.0, 2.0, 2.0, 2.0)
 
constexpr uint64 GlobalVectorConstants::DoubleAlmostTwoBits = 0x3FFFFFFFFFFFFFFF
 

Function Documentation

◆ MakeVectorRegisterConstant() [1/2]

FORCEINLINE constexpr VectorRegister4Double MakeVectorRegisterConstant ( double X,
double Y,
double Z,
double W )
constexpr

Definition at line 33 of file UnrealMathVectorConstants.h.

◆ MakeVectorRegisterConstant() [2/2]

FORCEINLINE constexpr VectorRegister4Float MakeVectorRegisterConstant ( float X,
float Y,
float Z,
float W )
constexpr

Definition at line 28 of file UnrealMathVectorConstants.h.

◆ MakeVectorRegisterDoubleConstant() [1/2]

FORCEINLINE constexpr VectorRegister4Double MakeVectorRegisterDoubleConstant ( const VectorRegister2Double & XY,
const VectorRegister2Double & ZW )
constexpr

Definition at line 17 of file UnrealMathVectorConstants.h.

◆ MakeVectorRegisterDoubleConstant() [2/2]

FORCEINLINE constexpr VectorRegister4Double MakeVectorRegisterDoubleConstant ( double X,
double Y,
double Z,
double W )
constexpr

Definition at line 22 of file UnrealMathVectorConstants.h.