|
SpatiumLib
|
Abstract Geometry class. More...
#include <Geometry.h>

Public Member Functions | |
| Geometry ()=default | |
| virtual | ~Geometry ()=default |
| virtual double | distanceTo (const Point3 &point) const =0 |
| Compute Euclidean distance to point. More... | |
| virtual Point3 | projectPoint (const Point3 &point) const =0 |
| Project point onto geometry. More... | |
| virtual bool | intersectLine (const Point3 &origin, const Vector3 &direction, Point3 &intersection) const =0 |
| Intersect line with geometry. More... | |
Abstract Geometry class.
Every concrete implementation of this class has to implement the following functions:
|
default |
|
virtualdefault |
|
pure virtual |
Compute Euclidean distance to point.
| [in] | point | Point |
Implemented in spatium::geom3d::Ellipsoid, spatium::geom3d::Plane, and spatium::geom3d::Sphere.
|
pure virtual |
Intersect line with geometry.
| [in] | origin | Origin of line |
| [in] | direction | Direction of line |
| [out] | intersection | Intersection point |
Implemented in spatium::geom3d::Ellipsoid, spatium::geom3d::Plane, and spatium::geom3d::Sphere.
Project point onto geometry.
| [in] | point |
Implemented in spatium::geom3d::Ellipsoid, spatium::geom3d::Plane, and spatium::geom3d::Sphere.
1.8.15