public PressureUnit(PreFix SI, PressureUnit unit) { Name = "Pressure"; Unit = unit.Unit.Copy(); SetCombined(SI); SetNewSymbol(SI); }
public PressureUnit(PressureUnit unit, string NewSymbol = "Empty", decimal correction = 1) { Name = "Pressure"; Unit = unit.Unit.Copy(); SetCombined(correction); SetNewSymbol(NewSymbol); }
//public static DynamicViscosityUnit Reyn = new DynamicViscosityUnit(PressureUnit.Pascal, DurationUnit.Second, "reyn", 6.8947572931683613e3m); public DynamicViscosityUnit(PressureUnit Pressure, DurationUnit duration, string NewSymbol = "Empty", decimal correction = 1) { Name = "DynamicViscosity"; Unit = Pressure.Unit * duration.Unit; SetCombined(correction); SetNewSymbol(NewSymbol); SetNewSymbol(NewSymbol, $"{Pressure}·{duration}"); }
public Pressure ToUnit(PressureUnit selectedUnit) => new Pressure(ToTheOutSide(selectedUnit.Unit), selectedUnit);
public double As(PressureUnit ReturnInThisUnit) => (double)ToTheOutSide(ReturnInThisUnit.Unit);
public static Pressure From(double value, PressureUnit unit) => new Pressure(value, unit);
public Pressure(int value, PressureUnit selectedUnit) : base(value, selectedUnit.Unit) { }
public Pressure(decimal value, PressureUnit selectedUnit) : base(value, selectedUnit.Unit) { }