Fix obsolete function signatures

This commit is contained in:
2024-05-27 16:27:12 -04:00
parent 78415d2a88
commit ff777d1867
10 changed files with 135 additions and 24 deletions

View File

@@ -68,6 +68,11 @@ namespace J3ML::Geometry
float MaxY() const; ///< [similarOverload: MaxX]
float MaxZ() const; ///< [similarOverload: MaxX]
Vector3 MinPoint() const;
Vector3 MaxPoint() const;
/// Returns the smallest sphere that contains this AABB.
/// This function computes the minimal volume sphere that contains all the points inside this AABB
Sphere MinimalEnclosingSphere() const;

View File

@@ -30,14 +30,20 @@ namespace J3ML::Geometry {
inline static int NumEdges() { return 12; }
inline static int NumVertices() { return 8; }
float MinX() const;
float MinY() const;
float MinZ() const;
float MaxX() const;
float MaxY() const;
float MaxZ() const;
Vector3 MinPoint() const;
Vector3 MaxPoint() const;
Polyhedron ToPolyhedron() const;
//PBVolume<6> ToPBVolume() const;
AABB MinimalEnclosingAABB() const
{
AABB aabb;
aabb.SetFrom(*this);
return aabb;
}
AABB MinimalEnclosingAABB() const;
bool Intersects(const LineSegment &lineSegment) const;