template<typename ConstOrNonConstPoint>
class boost::geometry::model::referring_segment< ConstOrNonConstPoint >
Class segment: small class containing two (templatized) point references.
From Wikipedia: In geometry, a line segment is a part of a line that is bounded by two distinct end points, and contains every point on the line between its end points.
- Note
- The structure is like std::pair, and can often be used interchangeable. Difference is that it refers to points, does not have points.
-
Like std::pair, points are public available.
-
type is const or non const, so geometry::segment<P> or geometry::segment<P const>
-
We cannot derive from std::pair<P&, P&> because of reference assignments.
- Template Parameters
-
ConstOrNonConstPoint | point type of the segment, maybe a point or a const point |