HudRect
namespace Griff;
public struct HudRectA rectangle on a HUD (a strategy game’s, a sandbox’s), in world units: a HUD is laid out over the camera’s view.
Properties
Section titled “Properties”Center
Section titled “Center”public Vector2 Center { get; }Height
Section titled “Height”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; }Methods
Section titled “Methods”Contains
Section titled “Contains”public bool Contains(Vector2 point)Deconstruct
Section titled “Deconstruct”public void Deconstruct(out float X, out float Y, out float Width, out float Height)Equals
Section titled “Equals”public override bool Equals(object obj)Equals
Section titled “Equals”public bool Equals(HudRect other)GetHashCode
Section titled “GetHashCode”public override int GetHashCode()ToString
Section titled “ToString”public override string ToString()