Example #1
0
        public void Project_ReturnsExpectedBearing()
        {
            GeoPoint pointTwo = geoPoint.Project(Distance.Kilometers(1), Bearing.Degrees(90));

            Assert.AreEqual(90, Math.Round(geoPoint.BearingTo(pointTwo).DecimalDegrees()));
        }
 public void Computation_Works_GivenZeroDegreesInput()
 {
     Assert.AreEqual(Bearing.Degrees(0), p1.BearingTo(p1));
 }