Module |
|
Header |
/Engine/Source/Runtime/Core/Public/Math/UnitConversion.h |
Include |
#include "Math/UnitConversion.h" |
template<typename NumericType>
struct FNumericUnit
FNumericUnit is a numeric type that wraps the templated type, whilst a specified unit. It handles conversion to/from related units automatically. The units are considered not to contribute to the type's state, and as such should be considered immutable once set.
Forward declaration of types defined in UnitConversion.h
Name | Description | |
---|---|---|
|
FNumericUnit() |
Constructors |
|
FNumericUnit ( |
Copy construction/assignment from the same type |
|
FNumericUnit ( |
Templated Copy construction/assignment from differing numeric types. |
|
FNumericUnit ( |
Name | Description | ||
---|---|---|---|
|
ConvertTo ( |
Convert this quantity to a different unit |
|
|
FNumericUnit... |
QuantizeUnitsToBestFit() |
Quantizes this number to the most appropriate unit for user friendly presentation (e.g. 1000m returns 1km). |
|
TValueOrErro... |
TryParseExpression ( |
Try and parse an expression into a numeric unit |
|
TryParseString ( |
Parse a numeric unit from a string |
Name | Description | ||
---|---|---|---|
|
FNumericUnit... |
operator= ( |
|
|
FNumericUnit... |
operator= ( |
|
|
FNumericUnit... |
operator= ( |