CGAL::Line_arc_2<CircularKernel>

#include <CGAL/Line_arc_2.h>

Is Model for the Concepts

CircularKernel::LineArc_2

Creation

Line_arc_2<CircularKernel> la ( CircularKernel::Line_2 l,
CircularKernel::Circular_arc_point_2 p1,
CircularKernel::Circular_arc_point_2 p2);
Construct the line segment supported by l, whose source is p1 and whose target is p2.
Precondition: p1 and p2 lie on l.


Line_arc_2<CircularKernel> la ( CircularKernel::Line_2 l, CircularKernel::Point_2 p1, CircularKernel::Point_2 p2);
Same.


Line_arc_2<CircularKernel> la ( CircularKernel::Segment_2 s);

Access Functions

CircularKernel::Line_2 la.supporting_line ()

CircularKernel::Circular_arc_point_2
la.source ()
CircularKernel::Circular_arc_point_2
la.target ()

CircularKernel::Circular_arc_point_2
la.left ()
CircularKernel::Circular_arc_point_2
la.right ()

Query Functions

bool la.is_vertical ()

I/O

istream& std::istream& is >> Line_arc_2 & ca
ostream& std::ostream& os << Line_arc_2 ca

The format for input/output is, for each line arc: a Line_2 (the supporting line) and two Circular_arc_point_2 (the two endpoints), under the condition that the endpoints are actually lying on the line.

See Also

CGAL::Circular_arc_point_2<CircularKernel>
CGAL::Circular_arc_2<CircularKernel>