BRE12
Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
BRE::MathUtils Class Reference

Public Member Functions

 MathUtils (const MathUtils &)=delete
 
const MathUtilsoperator= (const MathUtils &)=delete
 
 MathUtils (MathUtils &&)=delete
 
MathUtilsoperator= (MathUtils &&)=delete
 

Static Public Member Functions

static float RandomFloatInInverval (const float bottomValue, const float topValue) noexcept
 
static int RandomIntegerInInterval (const int32_t a, const int32_t b) noexcept
 
template<typename T >
static T Min (const T &a, const T &b) noexcept
 
template<typename T >
static T Max (const T &a, const T &b) noexcept
 
template<typename T >
static T Lerp (const T &a, const T &b, const float t) noexcept
 
template<typename T >
static T Clamp (const T &x, const T &low, const T &high) noexcept
 
static DirectX::XMMATRIX GetTransposeMatrix (const DirectX::XMFLOAT4X4 &matrix) noexcept
 
static void StoreTransposeMatrix (const DirectX::XMFLOAT4X4 &sourceMatrix, DirectX::XMFLOAT4X4 &destinationMatrix) noexcept
 
static DirectX::XMMATRIX GetInverseMatrix (const DirectX::XMFLOAT4X4 &matrix) noexcept
 
static void StoreInverseMatrix (const DirectX::XMFLOAT4X4 &sourceMatrix, DirectX::XMFLOAT4X4 &destinationMatrix) noexcept
 
static DirectX::XMMATRIX GetInverseTransposeMatrix (const DirectX::XMFLOAT4X4 &matrix) noexcept
 
static void StoreInverseTransposeMatrix (const DirectX::XMFLOAT4X4 &sourceMatrix, DirectX::XMFLOAT4X4 &destinationMatrix) noexcept
 
static void ComputeMatrix (DirectX::XMFLOAT4X4 &m, const float tx, const float ty, const float tz, const float sx=1.0f, const float sy=1.0f, const float sz=1.0f, const float rx=0.0f, const float ry=0.0f, const float rz=0.0f) noexcept
 
static DirectX::XMFLOAT4X4 GetIdentity4x4Matrix () noexcept
 

Static Public Attributes

static const float Infinity { FLT_MAX }
 
static const float Pi { 3.1415926535f }
 

The documentation for this class was generated from the following files: