namespace Terminus;
///
/// A two-dimensional vector.
///
[StructLayout(LayoutKind.Sequential)]
public struct Bound
{
///
/// The X-value.
///
public int X;
///
/// The Y-value.
///
public int Y;
///
/// The X-value.
///
///
///
/// The Y-value.
///
public Bound (int x, int y)
{
X = x;
Y = y;
}
///
/// A bound with a value of (0, 0).
///
public static readonly Bound Zero = new Bound(0, 0);
///
/// A bound with a value of (1, 1).
///
public static readonly Bound One = new Bound(1, 1);
///
public override string ToString()
{
return $"({X}, {Y})";
}
}