CGAL::Line_arc_3<SphericalKernel>

#include <CGAL/Line_arc_3.h>

Is Model for the Concepts

SphericalKernel::LineArc_3

Creation

Line_arc_3<SphericalKernel> la ( Line_3<SphericalKernel> l,
Circular_arc_point_3<SphericalKernel> p1,
Circular_arc_point_3<SphericalKernel> p2);
Construct the line segment supported by l, whose source is p1, and whose target is p2.
Precondition: p1 and p2 lie on l. p1 and p2 are different.


Line_arc_3<SphericalKernel> la ( Line_3<SphericalKernel> l, Point_3<SphericalKernel> p1, Point_3<SphericalKernel> p2);
Same.


Line_arc_3<SphericalKernel> la ( Segment_3<SphericalKernel> s);

Access Functions

Line_3<SphericalKernel> la.supporting_line ()

Circular_arc_point_3<SphericalKernel>
la.source ()
Circular_arc_point_3<SphericalKernel>
la.target ()

Circular_arc_point_3<SphericalKernel>
la.min () Constructs the minimum vertex according to the lexicographic ordering of coordinates.
Circular_arc_point_3<SphericalKernel>
la.max () Same for the maximum vertex.

Query Functions

bool la.is_vertical () Returns true iff the segment is vertical.

Operations

bool s1 == s2 Test for equality. Two segments are equal, iff their non-oriented supporting lines are equal (i.e. they define the same set of points), and their endpoints are the same.

bool s1 != s2 Test for nonequality.

I/O

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

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

See Also

CGAL::Circular_arc_point_3<SphericalKernel>
CGAL::Circular_arc_3<SphericalKernel>