public void IntegrationTest() { PositionARMarker marker = new PositionARMarker(); FlightDataStorage dataStream = new FlightDataStorage(); dataStream.set("latitude", "5"); dataStream.set("longitude", "5"); Debug.Assert(marker.GetDistanceFromLatLonInKm(Convert.ToDouble(dataStream.get("latitude")), Convert.ToDouble(dataStream.get("longitude")), 5, 5) == 0); }
public void MarkerManagerTest() { PositionARMarker marker = new PositionARMarker(); Debug.Assert(marker.GetDistanceFromLatLonInKm(0, 0, 0, 0) == 0); Debug.Log(marker.Rotate(5, 0, 90)); (double, double)markerTuple = marker.Rotate(5, 0, 90); Debug.Assert(Math.Round(markerTuple.Item1) == 0); Debug.Assert(Math.Round(markerTuple.Item2) == 5); }