Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::geometry::model::segment< Point > Class Template Reference

Class segment: small class containing two points. More...

#include <segment.hpp>

Inheritance diagram for boost::geometry::model::segment< Point >:
Collaboration diagram for boost::geometry::model::segment< Point >:

Public Member Functions

 segment ()
 
 segment (Point const &p1, Point const &p2)
 

Detailed Description

template<typename Point>
class boost::geometry::model::segment< Point >

Class segment: small class containing two points.

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
There is also a point-referring-segment, class referring_segment, containing point references, where points are NOT copied

Constructor & Destructor Documentation

template<typename Point >
boost::geometry::model::segment< Point >::segment ( )
inline
template<typename Point >
boost::geometry::model::segment< Point >::segment ( Point const &  p1,
Point const &  p2 
)
inline

The documentation for this class was generated from the following file: