public void Bearing() { var pt1 = Turf.Point(new double[] { -75.4, 39.4 }); var pt2 = Turf.Point(new double[] { -75.534, 39.123 }); var bear = Turf.Bearing(pt1, pt2); Assert.AreEqual(bear, -159.42, 0.01, "should return the correct bearing"); }
public void Bearing() { var pt1 = Turf.Point(new double[] { -75.4, 39.4 }); var pt2 = Turf.Point(new double[] { -75.534, 39.123 }); var bear = Turf.Bearing(pt1, pt2); Assert.AreEqual(bear, -159.42, 0.01, "should return the correct bearing"); }