![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <MathUtil.h>
Static Public Attributes | |
| static constexpr double | Epsilon = DBL_EPSILON |
| static constexpr double | ZeroTolerance = 1e-08 |
| static constexpr double | MaxReal = DBL_MAX |
| static constexpr double | SafeLargeValue = (double)FLT_MAX |
| static constexpr double | Pi = 3.1415926535897932384626433832795 |
| static constexpr double | FourPi = 4.0 * Pi |
| static constexpr double | TwoPi = 2.0 * Pi |
| static constexpr double | HalfPi = 0.5 * Pi |
| static constexpr double | InvPi = 1.0 / Pi |
| static constexpr double | InvTwoPi = 1.0 / TwoPi |
| static constexpr double | DegToRad = Pi / 180.0 |
| static constexpr double | RadToDeg = 180.0 / Pi |
| static constexpr double | Sqrt2 = 1.4142135623730950488016887242097 |
| static constexpr double | InvSqrt2 = 1.0 / Sqrt2 |
| static constexpr double | Sqrt3 = 1.7320508075688772935274463415059 |
| static constexpr double | InvSqrt3 = 1.0 / 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
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