Files
cs-map-project/Globals/Punt.cs
2020-07-26 12:01:43 +02:00

34 lines
664 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
namespace Globals
{
public class Punt
{
public double X, Y;
public string Naam;
public Punt(double x, double y, string naam = "")
{
Naam = naam;
X = x;
Y = y;
}
public override string ToString()
{
if (string.Equals(Naam, "", StringComparison.Ordinal)) return "UNKNOWN";
else return Naam;
}
public Point GetPoint()
{
return new Point(X, Y);
}
}
}