UnitSystem

References
[IoId("00000000-9e7c-4faf-87c4-673462299b4a")] public sealed class UnitSystem : IStorable, IEquatable<UnitSystem>, IComparable<UnitSystem>

Constructors

UnitSystem

#
public UnitSystem(
reader
)

UnitSystem

#
public UnitSystem(
document
)

UnitSystem

#
public UnitSystem(
UnitSystem
system,
factor = 1
)

Properties

Factor

#
Gets the additional scaling factor to be applied to the system.
public double Factor { get; }

System

#
Gets the system for this instance.
public UnitSystem System { get; }

Methods

CompareTo

#
public int CompareTo()

Equals

#
public override bool Equals(
obj
)
Object.Equals

Equals

#
public bool Equals()

GetHashCode

#
public override int GetHashCode()

ResolveScalingFactor

#
Compute the scaling factor required to go from one unit system to another.
public static double ResolveScalingFactor(
from,
Origin system.
to
Target system.
)
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.

Store

#
public void Store(
writer
)
Store

ToName

#
public static string ToName(
system
)

ToString

#
public override string ToString()
Object.ToString

ToString

#
public string ToString()

ToUnit

#
public static string ToUnit(
system
)

TryParse

#
public static Result<UnitSystem> TryParse(
text
)

TryParseSystem

#
Tru and parse a unit system from a string. If the parsing fails, UnitSystem.Unset will be returned.
public static UnitSystem TryParseSystem(
unit
)

Convertors

OperationResultDescription
implicitdoubleUnitSystem
implicitUnitSystemUnitSystem