Boost.Geometry    Boost C++ Libraries
Public Member Functions
boost::geometry::model::segment< Point > Class Template Reference

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

List of all members.

Public Member Functions

 segment ()
 Default constructor, no initialization.
 segment (Point const &p1, Point const &p2)
 Constructor taking the first and the second point.

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
Examples:
02_linestring_example.cpp.

Constructor & Destructor Documentation

template<typename Point >
boost::geometry::model::segment< Point >::segment ( )

Default constructor, no initialization.

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

Constructor taking the first and the second point.


April 2, 2011

Copyright © 2007-2011 Barend Gehrels, Amsterdam, the Netherlands
Copyright © 2008-2011 Bruno Lalande, Paris, France
Copyright © 2009-2010 Mateusz Loskot, London, UK
Documentation is generated by Doxygen