Skip to content

Box

namespace Griff;
public struct Box

An axis-aligned rectangle in world space.

public Vector2 Center { get; init; }
public Vector2 HalfSize { get; init; }
public Vector2 Max { get; }
public Vector2 Min { get; }
public bool Contains(Vector2 point)
public void Deconstruct(out Vector2 Center, out Vector2 HalfSize)
public override bool Equals(object obj)
public bool Equals(Box other)
public override int GetHashCode()
public bool Overlaps(Box other)
public bool Overlaps(Vector2 center, float radius)

True if the circle and the box share any area.

public override string ToString()