Skip to main content

Module compare

Module compare 

Source
Expand description

Point-ordering policies.

Mirrors boost/geometry/policies/compare.hpp and the default Cartesian, spherical, and geographic strategies selected from boost/geometry/strategies/{compare,spherical/compare}.hpp.

The default dimension (-1) compares lexicographically across the dimensions shared by both points. A non-negative const parameter compares only that dimension. Spherical and geographic longitude comparison treats -180° and 180° as the same meridian, orders the antimeridian after ordinary longitudes, and ignores longitude differences at a shared pole.

Structs§

EqualTo
Test points for coordinate-wise epsilon equality.
Greater
Sort points in lexicographically descending order using epsilon equality.
Less
Sort points in lexicographically ascending order using epsilon equality.
LessExact
Sort points in lexicographically ascending order using exact equality.

Constants§

ALL_DIMENSIONS
Sentinel used by the comparison policies to inspect all shared dimensions.