Implement Polyhedron header

This commit is contained in:
2024-04-04 21:37:59 -04:00
parent b2b5fd841d
commit 815e914c7f
4 changed files with 372 additions and 1 deletions

View File

@@ -66,8 +66,27 @@ namespace J3ML::Geometry
bool Intersects(const Sphere&) const;
bool Intersects(const Capsule&) const;
float FaceContainmentDistance2D(int i, Vector3 vector3) const;
bool IsClosed() const;
Plane FacePlane(int faceIndex) const;
std::vector<Polygon> Faces() const;
int NumEdges() const;
LineSegment Edge(int edgeIndex) const;
std::vector<std::pair<int, int>> EdgeIndices() const;
std::vector<LineSegment> Edges() const;
Polygon FacePolygon(int faceIndex) const;
bool IsConvex() const;
protected:
private:
};
}