Skip to main content

Crate geometry_cs

Crate geometry_cs 

Source
Expand description

Coordinate systems, angle units, and reference spheroids.

Mirrors boost/geometry/core/cs.hpp (the cs::cartesian, cs::spherical, cs::geographic, cs::polar tag templates and their cs_tag family classifier) together with boost/geometry/core/coordinate_system.hpp (the traits::coordinate_system<Point> typedef that picks one of those tags out per point type) and boost/geometry/srs/spheroid.hpp (the reference ellipsoid carried alongside any geographic strategy).

Crate split per proposal §3.3: a coordinate system is a type with an associated CoordinateSystem::Family, and algorithm strategies bind on the family — never on the concrete CS — so that degree and radian variants share one impl.

Structs§

Cartesian
Cartesian / rectangular coordinates.
CartesianFamily
Cartesian family marker.
Degree
Degrees (−180 … 180). Mirrors boost::geometry::degree (boost/geometry/core/cs.hpp:41).
Geographic
Geographic (lat / lon) coordinates on a spheroid in unit U.
GeographicFamily
Geographic family marker.
Polar
Polar coordinates in unit U.
PolarFamily
Polar family marker.
Radian
Radians (−π … π). Mirrors boost::geometry::radian (boost/geometry/core/cs.hpp:51).
Spherical
Spherical coordinates in unit U.
SphericalFamily
Spherical family marker.
Spheroid
Reference ellipsoid for geographic coordinate systems.

Traits§

AngleUnit
Unit of plane angle.
CoordinateSystem
A coordinate system.
FromF64
Construct a scalar from an f64 literal.
SpheroidalScalar
Scalar operations needed to canonicalize spheroidal angles.
SpheroidalUnits
Canonical angular constants for a spheroidal unit and scalar pair.

Functions§

normalize_spheroidal_box_coordinates
Normalize the two corners of an equatorial spheroidal box in place.