Skip to main content

Module corner

Module corner 

Source
Expand description

Indices used when addressing the two corners of a Box.

§Examples

use geometry_trait::corner;
assert_eq!(corner::MIN, 0);
assert_eq!(corner::MAX, 1);

Mirrors boost::geometry::min_corner and boost::geometry::max_corner declared at boost/geometry/core/access.hpp:36-39. For Segment, the same 0 / 1 integers select the first / second endpoint; segment endpoints are not “min” or “max”, so call sites that read segments should write the literal 0 / 1 rather than these constants — matching the Boost convention where min_corner / max_corner are box-specific names even though the underlying integers are shared.

Constants§

MAX
Index of the maximum corner of a Box.
MIN
Index of the minimum corner of a Box.