public static float3 GetAABBCenter(AABB aabb) { return((aabb.Min + aabb.Max) * 0.5f); }
public static bool AABBToAABBOverlap(AABB a, AABB b) { return((a.Min.x <= b.Max.x && a.Max.x >= b.Min.x) && (a.Min.z <= b.Max.z && a.Max.z >= b.Min.z) && (a.Min.y <= b.Max.y && a.Max.y >= b.Min.y)); }