using System; using StructureHelper.UnitSystem.Enums; using StructureHelper.UnitSystem.Systems; namespace StructureHelper.UnitSystem { internal class SystemSi : IUnitSystem { public SystemSi() { LengthUnits = new Tuple(Length.M, MultiplyPrefix.m); } public string Name => "СИ"; public Tuple ForceUnits { get; } public Tuple PressureUnits { get; } public Tuple LengthUnits { get; } public double ConvertLength(double length) { switch (LengthUnits.Item2) { case MultiplyPrefix.m: return length / 1000; default: throw new ArgumentOutOfRangeException(); } } } }