CGAL 6.0 - 2D Arrangements
|
#include <CGAL/Arr_geodesic_arc_on_sphere_traits_2.h>
Construction functor of \(x\)-monotone geodesic arcs.
Types | |
typedef Arr_geodesic_arc_on_sphere_traits_2< Kernel, X, Y >::Point_2 | Point_2 |
typedef Arr_geodesic_arc_on_sphere_traits_2< Kernel, X, Y >::X_monotone_curve_2 | result_type |
typedef Kernel::Direction_3 | Direction_3 |
typedef Direction_3 | argument_type |
Operations | |
X_monotone_curve_2 | operator() (const Point_2 &p, const Point_2 &q) |
Construct the minor geodesic arc from two endpoints. | |
X_monotone_curve_2 | operator() (const Direction_3 &normal) |
Construct a full great circle from a normal to a plane. | |
X_monotone_curve_2 | operator() (const Point_2 &p, const Point_2 &q, const Direction_3 &normal) |
Construct a geodesic arc from two endpoints and a normal to the plane containing the arc. | |
X_monotone_curve_2 CGAL::Arr_geodesic_arc_on_sphere_traits_2< Kernel, X, Y >::Construct_x_monotone_curve_2::operator() | ( | const Direction_3 & | normal | ) |
Construct a full great circle from a normal to a plane.
Observe that the constructed arc has one endpoint that lies on the identification curve. This point is considered both the source and target (and also the left and right) point of the arc.
normal | the normal to the plane containing the great circle. |
X_monotone_curve_2 CGAL::Arr_geodesic_arc_on_sphere_traits_2< Kernel, X, Y >::Construct_x_monotone_curve_2::operator() | ( | const Point_2 & | p, |
const Point_2 & | q | ||
) |
Construct the minor geodesic arc from two endpoints.
The minor arc is the one with the smaller angle among the two geodesic arcs with the given endpoints.
An arc is vertical, iff
[in] | p | the first endpoint. |
[in] | q | the second endpoint. |
X_monotone_curve_2 CGAL::Arr_geodesic_arc_on_sphere_traits_2< Kernel, X, Y >::Construct_x_monotone_curve_2::operator() | ( | const Point_2 & | p, |
const Point_2 & | q, | ||
const Direction_3 & | normal | ||
) |
Construct a geodesic arc from two endpoints and a normal to the plane containing the arc.
The two endpoints determine the plane. The normal determines the orientation of the plane and the final arc (whether its the minor arc or the major arc). The right-hand rule can be used to select the appropriate normal.
[in] | p | the first endpoint. |
[in] | q | the second endpoint. |
[in] | normal | the normal to the oriented plane containing the arc. |