public void Conversions_ReturnSaneValues()
 {
     Assert.AreEqual(1.5707963267948966, Bearing.DecimalDegrees(90).Radians());
     Assert.AreEqual(57.29577951308232, Bearing.Radians(1).DecimalDegrees());
 }
Beispiel #2
0
 public void DegreesAndRadians_ReturnFixedBearing()
 {
     Assert.IsInstanceOfType(Bearing.DecimalDegrees(90), typeof(FixedBearing));
     Assert.IsInstanceOfType(Bearing.Radians(90), typeof(FixedBearing));
 }