Class

UnitPreferences

USI.Core

Immutable unit choices used to project USI's canonical physical values at the developer boundary. Simulator adapters never observe these choices.

public sealed class UnitPreferences : IEquatable<UnitPreferences>

Constructors

UnitPreferences

public UnitPreferences(USIUnitSystem UnitSystem, LengthUnit Length, LengthUnit Altitude, LengthUnit Distance, SpeedUnit Speed, SpeedUnit VerticalSpeed, PressureUnit Pressure, TemperatureUnit Temperature, MassUnit Mass, VolumeUnit Volume, FrequencyUnit RadioFrequency, AngleUnit Angle, AngularVelocityUnit AngularVelocity, AccelerationUnit Acceleration, CoordinateFormat CoordinateFormat)

Immutable unit choices used to project USI's canonical physical values at the developer boundary. Simulator adapters never observe these choices.

Properties

Acceleration

public AccelerationUnit Acceleration { get; set; }

Altitude

public LengthUnit Altitude { get; set; }

Angle

public AngleUnit Angle { get; set; }

AngularAcceleration

public AngularAccelerationUnit AngularAcceleration { get; set; }

AngularVelocity

public AngularVelocityUnit AngularVelocity { get; set; }

Area

public AreaUnit Area { get; set; }

Aviation

public static UnitPreferences Aviation { get; }

CoordinateFormat

public CoordinateFormat CoordinateFormat { get; set; }

Density

public DensityUnit Density { get; set; }

Distance

public LengthUnit Distance { get; set; }

Energy

public EnergyUnit Energy { get; set; }

Force

public ForceUnit Force { get; set; }

Length

public LengthUnit Length { get; set; }

Mass

public MassUnit Mass { get; set; }

MassFlow

public MassFlowUnit MassFlow { get; set; }

Metric

public static UnitPreferences Metric { get; }

MomentOfInertia

public MomentOfInertiaUnit MomentOfInertia { get; set; }

Power

public PowerUnit Power { get; set; }

Pressure

public PressureUnit Pressure { get; set; }

RadioFrequency

public FrequencyUnit RadioFrequency { get; set; }

Speed

public SpeedUnit Speed { get; set; }

Temperature

public TemperatureUnit Temperature { get; set; }

Torque

public TorqueUnit Torque { get; set; }

UnitSystem

public USIUnitSystem UnitSystem { get; set; }

USCustomary

public static UnitPreferences USCustomary { get; }

VerticalSpeed

public SpeedUnit VerticalSpeed { get; set; }

Volume

public VolumeUnit Volume { get; set; }

VolumeFlow

public VolumeFlowUnit VolumeFlow { get; set; }

Methods

<Clone>$

public UnitPreferences <Clone>$()

Deconstruct

public void Deconstruct(USIUnitSystem UnitSystem, LengthUnit Length, LengthUnit Altitude, LengthUnit Distance, SpeedUnit Speed, SpeedUnit VerticalSpeed, PressureUnit Pressure, TemperatureUnit Temperature, MassUnit Mass, VolumeUnit Volume, FrequencyUnit RadioFrequency, AngleUnit Angle, AngularVelocityUnit AngularVelocity, AccelerationUnit Acceleration, CoordinateFormat CoordinateFormat)

Equals

public bool Equals(object obj)

Equals

public bool Equals(UnitPreferences other)

For

public static UnitPreferences For(USIUnitSystem unitSystem)

GetHashCode

public int GetHashCode()

ToString

public string ToString()