Module |
|
Header |
/Engine/Source/Runtime/Core/Public/Math/UnitConversion.h |
Include |
#include "Math/UnitConversion.h" |
struct FUnitConversion
Name | Description | ||
---|---|---|---|
|
AreUnitsCompatible |
Check whether it is possible to convert a number between the two specified units |
|
|
CalculateDisplayUnit ( |
Quantizes this number to the most appropriate unit for user friendly presentation (e.g. 1000m returns 1km), adhereing to global display settings. |
|
|
T |
Convert |
Convert the specified number from one unit to another. Does nothing if the units are incompatible. |
|
const TCHAR ... |
GetUnitDisplayString ( |
Get the display string for the the specified unit type |
|
GetUnitType ( |
Get the type of the specified unit |
|
|
IsUnitOfType |
Check whether a unit is of the specified type |
|
|
FNumericUnit... |
QuantizeUnitsToBestFit ( |
Quantizes this number to the most appropriate unit for user friendly presentation (e.g. 1000m returns 1km). |
|
FUnitSetting... |
Settings() |
Get the global settings for unit conversion/display |
|
UnitFromString ( |
Helper function to find a unit from a string (name or display string) |