mirror of
https://github.com/coding-horror/basic-computer-games.git
synced 2025-12-25 04:15:45 -08:00
9 lines
232 B
C#
9 lines
232 B
C#
namespace Mugwump;
|
|
|
|
internal record struct 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);
|
|
}
|