CGAL 6.0 - 2D Arrangements
|
#include <CGAL/Arr_geodesic_arc_on_sphere_traits_2.h>
Construction functor of 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 >::Curve_2 | result_type |
typedef Kernel::Direction_3 | Direction_3 |
typedef Direction_3 | argument_type |
Operations | |
X_monotone_curve_2 | operator() (const Direction_3 &normal) |
Construct a full great circle from a normal to a plane. | |
Curve_2 | operator() (const Point_2 &p, const Point_2 &q) |
Construct the minor geodesic arc from two endpoints. | |
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_curve_2::operator() | ( | const Direction_3 & | normal | ) |
Construct a full great circle from a normal to a plane.
normal | the normal to the plane containing the great circle. |
Curve_2 CGAL::Arr_geodesic_arc_on_sphere_traits_2< Kernel, X, Y >::Construct_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. |
Curve_2 CGAL::Arr_geodesic_arc_on_sphere_traits_2< Kernel, X, Y >::Construct_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. |