Пример #1
0
        public ForceUnit(PreFix SI, ForceUnit energyunit)
        {
            Unit = energyunit.Unit.Copy();

            SetCombined(SI);
            SetNewSymbol(SI);
        }
 public DynamicViscosityUnit(ForceUnit force, DurationUnit duration, AreaUnit area, string NewSymbol = "Empty", decimal correction = 1)
 {
     Name = "DynamicViscosity";
     Unit = (force.Unit * duration.Unit) / area.Unit;
     SetCombined(correction);
     SetNewSymbol(NewSymbol, $"{force}·{duration}/{area}");
 }
Пример #3
0
        public ForcePerLengthUnit(ForceUnit force, LengthUnit length, string NewSymbol = "Empty", decimal correction = 1)
        {
            Name = "ForcePerLength";
            Unit = force.Unit / length.Unit;

            SetCombined(correction);
            SetNewSymbol(NewSymbol, $"{force}/{length}");
        }
        public PressureUnit(ForceUnit force, AreaUnit area, string NewSymbol = "Empty", decimal correction = 1)
        {
            Name = "Pressure";
            Unit = force.Unit / area.Unit;

            SetCombined(correction);
            SetNewSymbol(NewSymbol, $"{force}/{area}");
        }
Пример #5
0
        public TorqueUnit(ForceUnit force, LengthUnit length, string NewSymbol = "Empty", decimal correction = 1)
        {
            Name = "Torque";
            Unit = force.Unit * length.Unit;

            SetCombined(correction);
            SetNewSymbol(NewSymbol, $"{force}·{length}");
        }
Пример #6
0
 public Force ToUnit(ForceUnit selectedUnit) => new Force(ToTheOutSide(selectedUnit.Unit), selectedUnit);
Пример #7
0
 public double As(ForceUnit ReturnInThisUnit) => (double)ToTheOutSide(ReturnInThisUnit.Unit);
Пример #8
0
 public static Force From(double value, ForceUnit unit) => new Force(value, unit);
Пример #9
0
 public Force(int value, ForceUnit selectedUnit) : base(value, selectedUnit.Unit)
 {
 }
Пример #10
0
 public Force(double value, ForceUnit selectedUnit) : base(value, selectedUnit.Unit)
 {
 }
Пример #11
0
 public Force(decimal value, ForceUnit selectedUnit) : base(value, selectedUnit.Unit)
 {
 }