TurnedBox
namespace Griff;
public struct TurnedBoxA rectangle in world space turned by Angle radians about its center.
Properties
Section titled “Properties”public float Angle { get; init; }Bounds
Section titled “Bounds”public Box Bounds { get; }The smallest upright box round it.
Center
Section titled “Center”public Vector2 Center { get; init; }HalfSize
Section titled “HalfSize”public Vector2 HalfSize { get; init; }Methods
Section titled “Methods”Contains
Section titled “Contains”public bool Contains(Vector2 point)Corners
Section titled “Corners”public Vector2[] Corners()The four corners, going round.
Deconstruct
Section titled “Deconstruct”public void Deconstruct(out Vector2 Center, out Vector2 HalfSize, out float Angle)Equals
Section titled “Equals”public override bool Equals(object obj)Equals
Section titled “Equals”public bool Equals(TurnedBox other)GetHashCode
Section titled “GetHashCode”public override int GetHashCode()Overlaps
Section titled “Overlaps”public bool Overlaps(Box box)True if it and the upright box share any area (a separating-axis test).
ToString
Section titled “ToString”public override string ToString()