mirror of
https://github.com/coding-horror/basic-computer-games.git
synced 2025-12-22 23:26:40 -08:00
10 lines
247 B
C#
10 lines
247 B
C#
namespace Mugwump
|
|
{
|
|
internal record Position(float X, float Y)
|
|
{
|
|
public override string ToString() => $"( {X} , {Y} )";
|
|
|
|
public static Distance operator -(Position p1, Position p2) => new(p1.X - p2.X, p1.Y - p2.Y);
|
|
}
|
|
}
|