Fixed stuff

This commit is contained in:
2016-01-21 21:20:31 +01:00
parent 67a4471901
commit b8eb3cf268
3 changed files with 0 additions and 8 deletions
-1
View File
@@ -148,7 +148,6 @@ namespace YJMPD_UWP.Helpers
public static double DegreeBearing(BasicGeoposition pos1, BasicGeoposition pos2)
{
var R = 6371000.0;
Debug.WriteLine(pos2.Latitude);
var φ1 = toRadian(pos1.Latitude);
var φ2 = toRadian(pos2.Latitude);
var Δφ = toRadian(pos2.Latitude - pos1.Latitude);
-4
View File
@@ -51,10 +51,6 @@ namespace YJMPD_UWP
{
if (e.Handled) return;
App.Game.MoveToStarted(new BasicGeoposition { Latitude = 51.591403, Longitude = 40.743948 });
e.Handled = true;
return;
if (App.Game.Status == Model.GameHandler.GameStatus.STARTED)
{
e.Handled = true;
-3
View File
@@ -31,7 +31,6 @@ namespace YJMPD_UWP.ViewModels
Degrees = (int)(angle + -e.Heading.HeadingMagneticNorth);
NotifyPropertyChanged(nameof(Degrees));
Debug.WriteLine(angle);
});
}
@@ -46,8 +45,6 @@ namespace YJMPD_UWP.ViewModels
double b = Util.Distance(e.Position.Coordinate.Point.Position, App.Game.Destination) * 1000;
HeadingVisible = (int)b > 250;
Debug.WriteLine(HeadingVisible + " " + b);
NotifyPropertyChanged(nameof(HeadingVisible));
NotifyPropertyChanged(nameof(InvHeadingVisible));
});