Skip to content

HudRect

namespace Griff;
public struct HudRect

A rectangle on a HUD (a strategy game’s, a sandbox’s), in world units: a HUD is laid out over the camera’s view.

public Vector2 Center { get; }
public float Height { get; init; }
public float Right { get; }
public float Top { get; }
public float Width { get; init; }
public float X { get; init; }
public float Y { get; init; }
public bool Contains(Vector2 point)
public void Deconstruct(out float X, out float Y, out float Width, out float Height)
public override bool Equals(object obj)
public bool Equals(HudRect other)
public override int GetHashCode()
public override string ToString()