Struct UIRect
An axis-aligned rectangle in top-left screen coordinates.
public readonly record struct UIRect : IEquatable<UIRect>
- Implements
- Inherited Members
Constructors
UIRect(Vector2, Vector2)
An axis-aligned rectangle in top-left screen coordinates.
public UIRect(Vector2 Position, Vector2 Size)
Parameters
Properties
Center
public Vector2 Center { get; }
Property Value
Position
public Vector2 Position { get; init; }
Property Value
Size
public Vector2 Size { get; init; }
Property Value
Methods
Contains(Vector2)
public bool Contains(Vector2 point)
Parameters
pointVector2