Orrery Terrain · OrreryTerrain module · member function
UOrreryTerrainSourceAsset::
MetresToMmChecked
A height or length in metres as whole millimetres within int32, rounded half away from zero.
Declaration
bool MetresToMmChecked(double Metres, int64 MinMm, int64 MaxMm, const TCHAR* What, int64& OutMm) const;- Header
#include "OrreryTerrainSourceAsset.h"- Module
PublicDependencyModuleNames.Add("OrreryTerrain");in your module’s Build.cs.- Stability
- Stable: changes within a major version only add.
- Thread
- Game thread. (the rule of UOrreryTerrainSourceAsset)
Parameters
| Name | Type | Default | Meaning |
|---|---|---|---|
Metres | double | — | The value to convert, metres. |
MinMm | int64 | — | Smallest accepted result, mm. |
MaxMm | int64 | — | Largest accepted result, mm. |
What | const TCHAR* | — | Names the property in the warning logged when the value is not finite or out of range. |
OutMm | int64& | — | The converted value, mm; unchanged when the value does not fit. |
Returns
false, with a warning, when the value does not fit.