Base class for geometry primitives. More...
#include <GeometryBase.h>
Public Member Functions | |
| virtual | ~GeometryBase ()=default |
| virtual bool | intersect (const LineSegment &line_segment) const =0 |
| Check if a line segment intersects this geometry. More... | |
| virtual Ball | computeBoundingBall () const =0 |
| Compute a bounding ball for this geometry. More... | |
Base class for geometry primitives.
Definition at line 18 of file GeometryBase.h.
|
virtualdefault |
|
pure virtual |
Compute a bounding ball for this geometry.
Sphere in 3D, circle in 2D. The ball should fully contain the geometry.
Implemented in LineSegment, Ball, and Triangle.
|
pure virtual |
Check if a line segment intersects this geometry.
Implemented in LineSegment, Ball, and Triangle.
1.8.14