mirror of
https://github.com/bvanroll/cs-map-project.git
synced 2025-08-29 20:02:43 +00:00
ik ben braindead. long en lat zijn graden fml
This commit is contained in:
@@ -14,8 +14,8 @@ namespace Globals
|
||||
public Punt(double x, double y, string naam = "")
|
||||
{
|
||||
Naam = naam;
|
||||
X = x;
|
||||
Y = y;
|
||||
X = ConvertToRadians(x);
|
||||
Y = ConvertToRadians(y);
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
@@ -23,7 +23,12 @@ namespace Globals
|
||||
if (string.Equals(Naam, "", StringComparison.Ordinal)) return "UNKNOWN";
|
||||
else return Naam;
|
||||
}
|
||||
|
||||
|
||||
public double ConvertToRadians(double angle)
|
||||
{
|
||||
return (Math.PI / 180) * angle;
|
||||
}
|
||||
|
||||
public Point ToPoint()
|
||||
{
|
||||
return new Point(X, Y);
|
||||
|
Reference in New Issue
Block a user