#include <CGAL/Arr_geodesic_arc_on_sphere_traits_2.h>
template<typename Kernel, typename X, typename Y>
class CGAL::Arr_geodesic_arc_on_sphere_traits_2< Kernel, X, Y >::Construct_x_monotone_curve_2
Construction functor of \(x\)-monotone geodesic arcs.
- Is Model Of:
Assignable
CopyConstructible
AdaptableUnaryFunction
AdaptableBinaryFunction
AdaptableTernaryFunction
◆ operator()() [1/3]
template<typename Kernel , typename X , typename Y >
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.
- Find out whether the arc is x-monotone.
- If it is x-monotone, 2.1 Find out whether it is vertical, and 2.2 whether the target is larger than the source (directed right). The arc is vertical, iff
- one of its endpoint direction pierces a pole, or
- the projections onto the xy-plane coincide.
- Parameters
-
[in] | p | the first endpoint. |
[in] | q | the second endpoint. |
- Precondition
- p and q must not coincide.
-
p and q cannot be antipodal.
◆ operator()() [2/3]
template<typename Kernel , typename X , typename Y >
Construct a full great circle from a normal to a plane.
- Parameters
-
normal | the normal to the plane containing the great circle. |
- Precondition
- the plane is not vertical.
◆ operator()() [3/3]
template<typename Kernel , typename X , typename Y >
Construct a geodesic arc from two endpoints contained in a plane.
- Parameters
-
[in] | p | the first endpoint. |
[in] | q | the second endpoint. |
[in] | normal | the normal to the plane containing the arc. |
- Precondition
- Both endpoint lie on the given plane.
-
Both endpoint lie on the given plane.