This commit is contained in:
2024-01-12 05:17:01 -05:00
parent dea5735c87
commit 93759ba545
9 changed files with 227 additions and 21 deletions

View File

@@ -1,3 +1,4 @@
#include <J3ML/LinearAlgebra/Vector2.h>
#include <J3ML/LinearAlgebra/Vector3.h>
#pragma once
@@ -19,19 +20,12 @@ namespace Geometry {
class Triangle2D;
class Polygon2D;
struct IntersectionResult2D {
};
struct IntersectionResult2D {};
bool Intersects2D(LineSegment2D seg, Rectangle rect);
IntersectionResult2D GetIntersection2D(LineSegment2D seg, Rectangle rect);
// A 3D axis-aligned bounding box
// This data structure can be used to represent coarse bounds of objects, in situations where detailed triangle-level
// computations can be avoided. In physics systems, bounding boxes are used as an efficient early-out test for geometry