Box
namespace Griff;
public struct BoxAn axis-aligned rectangle in world space.
Properties
Section titled “Properties”Center
Section titled “Center”public Vector2 Center { get; init; }HalfSize
Section titled “HalfSize”public Vector2 HalfSize { get; init; }public Vector2 Max { get; }public Vector2 Min { get; }Methods
Section titled “Methods”Contains
Section titled “Contains”public bool Contains(Vector2 point)Deconstruct
Section titled “Deconstruct”public void Deconstruct(out Vector2 Center, out Vector2 HalfSize)Equals
Section titled “Equals”public override bool Equals(object obj)Equals
Section titled “Equals”public bool Equals(Box other)GetHashCode
Section titled “GetHashCode”public override int GetHashCode()Overlaps
Section titled “Overlaps”public bool Overlaps(Box other)Overlaps
Section titled “Overlaps”public bool Overlaps(Vector2 center, float radius)True if the circle and the box share any area.
ToString
Section titled “ToString”public override string ToString()