#include <eckit/geometry/SphereT.h>
template<class DATUM>
SphereT struct
Definition of a sphere parametrised with a geodetic datum.
Public static functions
- static auto radius() -> double
- Sphere radius in metres.
- static auto centralAngle(const Point2& Alonlat, const Point2& Blonlat, bool normalise_angle = false) -> double
- Great-circle central angle between two points (longitude/latitude coordinates) in radians.
- static auto centralAngle(const Point3& A, const Point3& B) -> double
- Great-circle central angle between two points (Cartesian coordinates) in radians.
- static auto distance(const Point2& Alonlat, const Point2& Blonlat) -> double
- Great-circle distance between two points (longitude/latitude coordinates) in metres.
- static auto distance(const Point3& A, const Point3& B) -> double
- Great-circle distance between two points (Cartesian coordinates) in metres.
- static auto area() -> double
- Surface area in square metres.
- static auto area(const Point2& WestNorth, const Point2& EastSouth) -> double
- static auto greatCircleLatitudeGivenLongitude(const Point2& Alonlat, const Point2& Blonlat, const double& Clon) -> double
- static void greatCircleLongitudeGivenLatitude(const Point2& Alonlat, const Point2& Blonlat, const double& Clat, double& Clon1, double& Clon2)
- static void convertSphericalToCartesian(const Point2& Alonlat, Point3& B, double height = 0., bool normalise_angle = false)
- static void convertCartesianToSpherical(const Point3& A, Point2& Blonlat)