|
| Spheroid (const Point3 &origin, double axisXY, double axisZ) |
| Constructor. More...
|
|
| Spheroid (double axisXY, double axisZ) |
| Constructor. More...
|
|
| Spheroid (const Spheroid &other)=default |
| Copy constructor. More...
|
|
Spheroid & | operator= (const Spheroid &other)=default |
| Assignment operator. More...
|
|
virtual | ~Spheroid ()=default |
| Destructor. More...
|
|
void | axisXY (double axisXY) |
| Set X and Y axis length. More...
|
|
double | axisXY () const |
| Get X and Y axis length. More...
|
|
| Ellipsoid (const Point3 &origin, double axisX, double axisY, double axisZ) |
| Constructor. More...
|
|
| Ellipsoid (double axisX, double axisY, double axisZ) |
| Constructor. More...
|
|
| Ellipsoid (const Ellipsoid &other)=default |
| Copy constructor. More...
|
|
Ellipsoid & | operator= (const Ellipsoid &other)=default |
| Assignment operator. More...
|
|
virtual | ~Ellipsoid ()=default |
| Destructor. More...
|
|
void | origin (const Point3 &origin) |
| Set origin of ellipsoid. More...
|
|
Point3 | origin () const |
| Get origin of ellipsoid. More...
|
|
void | axisX (double axisX) |
| Set the X axis length. More...
|
|
double | axisX () const |
| Get the X axis length. More...
|
|
void | axisY (double axisY) |
| Set the Y axis length. More...
|
|
double | axisY () const |
| Get the Y axis length. More...
|
|
void | axisZ (double axisZ) |
| Set the Z axis length. More...
|
|
double | axisZ () const |
| Get the Z axis length. More...
|
|
double | distanceTo (const Point3 &point) const override |
| Compute Euclidean distance to point. More...
|
|
Point3 | projectPoint (const Point3 &point) const override |
| Project point onto ellipsoid. More...
|
|
bool | intersectLine (const Point3 &origin, const Vector3 &direction, Point3 &intersection) const override |
| Intersect line with ellipsoid. More...
|
|
Vector3 | surfaceNormal (const Point3 &point) const |
| Compute surface normal at given point. More...
|
|
Point3 | pointOnHorizon (const Point3 &point, double direction, bool poleLimit=false) |
| Compute point on horizon in a given direction. More...
|
|
| Geometry ()=default |
|
virtual | ~Geometry ()=default |
|
Spheroid geometry.
A spheroid is an ellipsoid with two equal semi-diamters.
A spheroid is defined by a point (origin) and two radii:
- Equatorial radius (axisXY)
- Polar radius (axisZ)
Parametric description = (x^2 + y^2) / a^2 + z^2 / c^2 = 1