public MeasuredValue(MeasuredValue mValue) { InitValue(); if (ToBaseUnitConversionFactor == mValue.ToBaseUnitConversionFactor) { // Fall: Einheiten gleich if (OrderOfMagnitude == mValue.OrderOfMagnitude) { // Fall: Größenordnungen gleich Value = mValue.Value; } else { // Fall: Größenordnungen verschieden Value = Mag.FromTo(mValue.Value, mValue.OrderOfMagnitude, OrderOfMagnitude); } } else { // Fall: Einheiten verschieden Value = Mag.FromTo(mValue.ValueInBaseUnit * (1 / ToBaseUnitConversionFactor), Mag.OrderOfMagnitudeEnum.One, OrderOfMagnitude); } }
public override MeasuredValue Create(MeasuredValue Value) { return(new PowerInHorsePower((Power)Value)); }
public override MeasuredValue Create(MeasuredValue Value) { return(new TimeInMinutes((Time)Value)); }
public override MeasuredValue Create(MeasuredValue Value) { return(new EnergyInSKE((Energy)Value)); }
public override MeasuredValue Create(MeasuredValue Value) { return(new EnergyInWs <TOrderOfMagnitude>((Energy)Value)); }
public override MeasuredValue Create(MeasuredValue Value) { return(new PowerInWatt <TOrderOfMagnitude>((Power)Value)); }
public override MeasuredValue Create(MeasuredValue Value) { return(new MassInOunce((Mass)Value)); }
public override MeasuredValue Create(MeasuredValue Value) { return(new TimeInSec <TOrderOfMagnitude>((Time)Value)); }
public abstract MeasuredValue Create(MeasuredValue Value);
public override MeasuredValue Create(MeasuredValue Value) { return(new MassInGram <TOrderOfMagnitude>((Mass)Value)); }