Files
basic-computer-games/62_Mugwump/csharp/Mugwump/Position.cs
Chris Reuter d26dbf036a Removed spaces from top-level directory names.
Spaces tend to cause annoyances in a Unix-style shell environment.
This change fixes that.
2021-11-21 18:30:21 -05:00

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);
}
}