Converts an engine length in world units to the declared display unit.
The conversion is worldUnits × scale.lengthToMeters ÷ (metres per display unit), so a world authored in centimetres and displayed in centimetres is
the exact identity, while the same world displayed in millimetres reads ten
times larger — which is the whole point of declaring both.
Parameters
worldUnits: number
the engine value (a position component, a radius, …)
Converts an engine length in world units to the declared display unit.
The conversion is
worldUnits × scale.lengthToMeters ÷ (metres per display unit), so a world authored in centimetres and displayed in centimetres is the exact identity, while the same world displayed in millimetres reads ten times larger — which is the whole point of declaring both.