UnitSystem
References[IoId("00000000-9e7c-4faf-87c4-673462299b4a")]
public sealed class UnitSystem : IStorable, IEquatable<UnitSystem>, IComparable<UnitSystem>
Constructors
Properties
Methods
ResolveScalingFactor
#Compute the scaling factor required to go from one unit system to another.
Parameters:
| from (UnitSystem) | Origin system. |
| to (UnitSystem) | Target system. |
Returns: The scaling required so that a shape in the origin system retains its real world size when expressed in the units of the target system.
TryParseSystem
#Tru and parse a unit system from a string. If the parsing fails, UnitSystem.Unset will be returned.
Parameters:
| unit (string) |
Convertors
| Operation | Result | Description | ||
|---|---|---|---|---|
| implicit | double | UnitSystem | ||
| implicit | UnitSystem | UnitSystem | ||