Add triangle SAT intersection

This commit is contained in:
Mishura
2024-05-08 09:23:20 -04:00
parent ac4538bba5
commit 4830015060
6 changed files with 284 additions and 2 deletions

View File

@@ -27,5 +27,13 @@ namespace J3ML::Geometry
// Methods required by Geometry types
namespace J3ML::Geometry
{
// Represents a segment along an axis, with the axis as a unit
struct Interval {
float min;
float max;
bool Intersects(const Interval& rhs) const;
bool operator==(const Interval& rhs) const = default;
};
}