Пример #1
0
        public void dm_positive_sample()
        {
            var expectedDecimalDegrees = 12.5050;
            var expectedSexagesimal    = 12.303;

            Assert.AreEqual(expectedDecimalDegrees, DmConversion.TransformValue(expectedSexagesimal));
            Assert.AreEqual(expectedSexagesimal, DmInverse.TransformValue(expectedDecimalDegrees));
        }
 public SpheroidLinearUnitConversionWrapper(ISpheroidInfo spheroid, IUnitConversion<double> conversion)
     : this(spheroid, conversion.To, conversion.TransformValue(spheroid.A), conversion.TransformValue(spheroid.B))
 {
     Contract.Requires(spheroid != null);
     Contract.Requires(conversion != null);
 }
 public SpheroidLinearUnitConversionWrapper(ISpheroidInfo spheroid, IUnitConversion <double> conversion)
     : this(spheroid, conversion.To, conversion.TransformValue(spheroid.A), conversion.TransformValue(spheroid.B))
 {
     Contract.Requires(spheroid != null);
     Contract.Requires(conversion != null);
 }