public MassFlowUnit(PreFix SI, MassFlowUnit unit) { Unit = unit.Unit.Copy(); SetCombined(SI); SetNewSymbol(SI); }
public ForceUnit(PreFix SI, ForceUnit energyunit) { Unit = energyunit.Unit.Copy(); SetCombined(SI); SetNewSymbol(SI); }
public TorqueUnit(PreFix SI, TorqueUnit unit) { Name = "Torque"; Unit = unit.Unit.Copy(); SetCombined(SI); SetNewSymbol(SI); }
public PressureUnit(PreFix SI, PressureUnit unit) { Name = "Pressure"; Unit = unit.Unit.Copy(); SetCombined(SI); SetNewSymbol(SI); }
public ElectricPotentialUnit(PreFix SI, ElectricPotentialUnit unit) { Name = "ElectricPotentialh"; Unit = unit.Unit.Copy(); SetCombined(SI); SetNewSymbol(SI); }
public PowerUnit(PreFix SI, PowerUnit unit) { Name = "Power"; Unit = unit.Unit.Copy(); SetCombined(SI); SetNewSymbol(SI); }
public DynamicViscosityUnit(PreFix SI, DynamicViscosityUnit unit) { Name = "DynamicViscosity"; Unit = unit.Unit.Copy(); SetCombined(SI); SetNewSymbol(SI); }
public testUnit(PreFix SI, testUnit unit) { Name = "test"; Unit = unit.Unit.Copy(); SetCombined(SI); SetNewSymbol(SI); }
public FrequencyUnit(PreFix SI, FrequencyUnit unit) { Name = "Frequencyh"; Unit = unit.Unit.Copy(); SetCombined(SI); SetNewSymbol(SI); }
public ForcePerLengthUnit(PreFix SI, ForcePerLengthUnit unit) { Name = "ForcePerLength"; Unit = unit.Unit.Copy(); SetCombined(SI); SetNewSymbol(SI); }
//public VolumeFlowUnit(AreaUnit Area, LengthUnit Length, string NewSymbol = "Empty", decimal correction = 1) //{ // Name = "VolumeFlowh"; // Unit = Area.Unit * Length.Unit; // SetCombined(correction); // SetNewSymbol(NewSymbol, $"{Area}-{Length}"); //} public VolumeFlowUnit(PreFix SI, VolumeFlowUnit unit) { Name = "VolumeFlowh"; Unit = unit.Unit.Copy(); SetCombined(SI); SetNewSymbol(SI); }
public ThermalConductivityUnit(PreFix SI, ThermalConductivityUnit unit) { Name = "ThermalConductivity"; Unit = unit.Unit.Copy(); SetCombined(SI); SetNewSymbol(SI); }
protected Enumeration(PreFix SI, BaseUnits baseunit) { LocalC = PrefixSISize(SI); GlobalC = 1; Symbol = PrefixSISymbol(SI) + BaseUnitSISymbol(baseunit); B = 0; ActualC = 1; }
public EnergyUnit(PreFix SI, EnergyUnit energyunit) { Unit = energyunit.Unit.Copy(); SetCombined(SI); SetNewSymbol(SI); //if (Unit.Combined is null) // Unit.Combined = new CombinedUnit("", 1, PrefixSISize(SI)); //else // Unit.Combined.GlobalC *= PrefixSISize(SI); //Unit.Symbol = PrefixSISymbol(SI) + Unit.Symbol; }
public LengthUnit(PreFix SI, BaseUnits baseunit) : base(SI, baseunit) { SetUnitSystem(); }
public TemperatureDeltaUnit(PreFix SI, BaseUnits baseunit) : base(SI, baseunit) { SetUnitSystem(); }
public AmountOfSubstanceUnit(PreFix SI, BaseUnits baseunit) : base(SI, baseunit) { SetUnitSystem(); }
public LuminousIntensityUnit(PreFix SI, BaseUnits baseunit) : base(SI, baseunit) { SetUnitSystem(); }
public ElectricCurrentUnit(PreFix SI, BaseUnits baseunit) : base(SI, baseunit) { SetUnitSystem(); }
public decimal PrefixSISize(PreFix preFix) => preFix switch {
public AccelerationUnit(PreFix SI, AccelerationUnit energyunit) { Unit = energyunit.Unit.Copy(); SetCombined(SI); SetNewSymbol(SI); }
public MassUnit(PreFix SI, BaseUnits baseunit) : base(SI, baseunit) { SetUnitSystem(); }
public DurationUnit(PreFix SI, BaseUnits baseunit) : base(SI, baseunit) { SetUnitSystem(); }
public CombinedUnit(PreFix SI, BaseUnits baseunit) : base(SI, baseunit) { SetUnitSystem(); }