43 lines
703 B
C#
43 lines
703 B
C#
using System.Numerics;
|
|
|
|
namespace BoundingBox
|
|
{
|
|
public enum IntersectionType { Contains, Intersects, Disjoint }
|
|
|
|
public class BoundingBox2
|
|
{
|
|
public Vector2 Min;
|
|
|
|
public Vector2 Max;
|
|
|
|
public Vector2 Center => ;
|
|
|
|
public Vector2 Size =>;
|
|
|
|
public BoundingBox2(Vector2 min, Vector2 max)
|
|
{
|
|
Min = min;
|
|
Max = max;
|
|
}
|
|
|
|
public bool Contains(Vector2 position)
|
|
{
|
|
|
|
}
|
|
|
|
public IntersectionType Intersects(BoundingBox2 other)
|
|
{
|
|
}
|
|
|
|
public void Translate(Vector2 translation)
|
|
{
|
|
|
|
}
|
|
|
|
public void Expand(float expansion)
|
|
{
|
|
|
|
}
|
|
}
|
|
}
|