UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
TMathUtilConstants< float > Struct Reference

#include <MathUtil.h>

Static Public Attributes

static constexpr float Epsilon = FLT_EPSILON
 
static constexpr float ZeroTolerance = 1e-06f
 
static constexpr float MaxReal = FLT_MAX
 
static constexpr float SafeLargeValue = UE_LARGE_WORLD_MAX
 
static constexpr float Pi = 3.1415926535897932384626433832795f
 
static constexpr float FourPi = 4.0f * Pi
 
static constexpr float TwoPi = 2.0f*Pi
 
static constexpr float HalfPi = 0.5f*Pi
 
static constexpr float InvPi = 1.0f / Pi
 
static constexpr float InvTwoPi = 1.0f / TwoPi
 
static constexpr float DegToRad = Pi / 180.0f
 
static constexpr float RadToDeg = 180.0f / Pi
 
static constexpr float Sqrt2 = 1.4142135623730950488016887242097f
 
static constexpr float InvSqrt2 = 1.0f / Sqrt2
 
static constexpr float Sqrt3 = 1.7320508075688772935274463415059f
 
static constexpr float InvSqrt3 = 1.0f / Sqrt3
 

Member Data Documentation

◆ DegToRad

constexpr float TMathUtilConstants< float >::DegToRad = Pi / 180.0f
staticconstexpr

pi / 180

◆ Epsilon

constexpr float TMathUtilConstants< float >::Epsilon = FLT_EPSILON
staticconstexpr

Machine Epsilon - float approx 1e-7, double approx 2e-16

◆ FourPi

constexpr float TMathUtilConstants< float >::FourPi = 4.0f * Pi
staticconstexpr

◆ HalfPi

constexpr float TMathUtilConstants< float >::HalfPi = 0.5f*Pi
staticconstexpr

◆ InvPi

constexpr float TMathUtilConstants< float >::InvPi = 1.0f / Pi
staticconstexpr

1.0 / Pi

◆ InvSqrt2

constexpr float TMathUtilConstants< float >::InvSqrt2 = 1.0f / Sqrt2
staticconstexpr

◆ InvSqrt3

constexpr float TMathUtilConstants< float >::InvSqrt3 = 1.0f / Sqrt3
staticconstexpr

◆ InvTwoPi

constexpr float TMathUtilConstants< float >::InvTwoPi = 1.0f / TwoPi
staticconstexpr

1.0 / (2*Pi)

◆ MaxReal

constexpr float TMathUtilConstants< float >::MaxReal = FLT_MAX
staticconstexpr

largest possible number for type

◆ Pi

constexpr float TMathUtilConstants< float >::Pi = 3.1415926535897932384626433832795f
staticconstexpr

3.14159...

◆ RadToDeg

constexpr float TMathUtilConstants< float >::RadToDeg = 180.0f / Pi
staticconstexpr

180 / pi

◆ SafeLargeValue

constexpr float TMathUtilConstants< float >::SafeLargeValue = UE_LARGE_WORLD_MAX
staticconstexpr

a very large value, but not too close to the max possible for the type

◆ Sqrt2

constexpr float TMathUtilConstants< float >::Sqrt2 = 1.4142135623730950488016887242097f
staticconstexpr

◆ Sqrt3

constexpr float TMathUtilConstants< float >::Sqrt3 = 1.7320508075688772935274463415059f
staticconstexpr

◆ TwoPi

constexpr float TMathUtilConstants< float >::TwoPi = 2.0f*Pi
staticconstexpr

◆ ZeroTolerance

constexpr float TMathUtilConstants< float >::ZeroTolerance = 1e-06f
staticconstexpr

Zero tolerance for math operations (eg like parallel tests) - float 1e-6, double 1e-8


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