public Obb2d(aabb aabb) { Center = aabb.Center; Extents = aabb.Extents; Ax = vector.AxisX; Ay = vector.AxisY; }
public bool IntersectsAsAabb(aabb aabb) { var v = Center - aabb.Center; var extents = Extents; return(Math.Abs(v.X) <= extents.X + aabb.Extents.X && Math.Abs(v.Y) <= extents.Y + aabb.Extents.Y); }