Пример #1
0
 private static DerivedUnit exponentiateBaseUnit(BaseUnit a, double b)
 => new DerivedUnit(a, b);
Пример #2
0
 private static DerivedUnitDimension generateDimensionFromBaseUnit(BaseUnit baseUnit, MetricPrefix prefix, double exponent) =>
Пример #3
0
 private static DerivedUnit multiplyPrefixByBaseUnit(MetricPrefix a, BaseUnit b)
 => multiplyBaseUnitByPrefix(b, a);
Пример #4
0
 private static DerivedUnit multiplyBaseUnitByPrefix(BaseUnit a, MetricPrefix b)
 => new DerivedUnit(a, b, 1);
Пример #5
0
        private static DerivedUnit multiplyDerivedUnitByBaseUnits(DerivedUnit a, BaseUnit b)
        {
            var derivedB = new DerivedUnit(b, 1);

            return(multiplyDerivedUnits(a, derivedB));
        }
Пример #6
0
        private static DerivedUnit multiplyBaseUnitByDerivedUnits(BaseUnit a, DerivedUnit b)
        {
            var derivedA = new DerivedUnit(a, 1);

            return(multiplyDerivedUnits(derivedA, b));
        }
Пример #7
0
 private DerivedUnitDimension getExpression(BaseUnit baseUnit, MetricPrefix prefix, double exponent) =>