Something went wrong. Try again.
.NET bindings for Terminus
Something went wrong. Try again.
Terminus.NET Bound.cs
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748namespace Terminus;
/// <summary>/// A two-dimensional vector./// </summary>[StructLayout(LayoutKind.Sequential)]public struct Bound{ /// <summary> /// The X-value. /// </summary> public int X;
/// <summary> /// The Y-value. /// </summary> public int Y;
/// <param name="x"> /// The X-value. /// </param> /// /// <param name="y"> /// The Y-value. /// </param> public Bound (int x, int y) { X = x; Y = y; }
/// <summary> /// A bound with a value of (0, 0). /// </summary> public static readonly Bound Zero = new Bound(0, 0);
/// <summary> /// A bound with a value of (1, 1). /// </summary> public static readonly Bound One = new Bound(1, 1);
/// <inheritdoc /> public override string ToString() { return $"({X}, {Y})"; }}