mirror of
https://github.com/bvanroll/cs-map-project.git
synced 2025-08-30 12:22:44 +00:00
can you listen? pls
This commit is contained in:
22
Datalaag/Punt.cs
Normal file
22
Datalaag/Punt.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using System;
|
||||
|
||||
namespace Datalaag
|
||||
{
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user