![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#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 |
|
staticconstexpr |
pi / 180
|
staticconstexpr |
Machine Epsilon - float approx 1e-7, double approx 2e-16
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
1.0 / Pi
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
1.0 / (2*Pi)
|
staticconstexpr |
largest possible number for type
|
staticconstexpr |
3.14159...
|
staticconstexpr |
180 / pi
|
staticconstexpr |
a very large value, but not too close to the max possible for the type
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
Zero tolerance for math operations (eg like parallel tests) - float 1e-6, double 1e-8