BWAPI
|
#include <Arr_geodesic_arc_on_sphere_traits_2.h>
Public Member Functions | |
template<typename OutputIterator > | |
OutputIterator | operator() (const X_monotone_curve_2 &xc1, const X_monotone_curve_2 &xc2, OutputIterator oi) const |
Protected Types | |
typedef Arr_geodesic_arc_on_sphere_traits_2 < Kernel > | Traits |
Protected Member Functions | |
Intersect_2 (const Traits *traits) | |
Protected Attributes | |
const Traits * | m_traits |
Friends | |
class | Arr_geodesic_arc_on_sphere_traits_2< Kernel > |
A functor that computes intersections between x-monotone arcs.
typedef Arr_geodesic_arc_on_sphere_traits_2<Kernel> Arr_geodesic_arc_on_sphere_traits_2< T_Kernel >::Intersect_2::Traits [protected] |
Arr_geodesic_arc_on_sphere_traits_2< T_Kernel >::Intersect_2::Intersect_2 | ( | const Traits * | traits | ) | [inline, protected] |
Constructor
traits | the traits (in case it has state) |
OutputIterator Arr_geodesic_arc_on_sphere_traits_2< T_Kernel >::Intersect_2::operator() | ( | const X_monotone_curve_2 & | xc1, |
const X_monotone_curve_2 & | xc2, | ||
OutputIterator | oi | ||
) | const [inline] |
Find the intersections of the two given curves and insert them into the given output iterator. As two spherical_arcs may itersect only once, only a single intersection will be contained in the iterator.
xc1 | the first curve. |
xc2 | the second curve. |
oi | the output iterator. |
If the endpoints of one arc coinside with the 2 poles resp, the other arc is completely overlapping.
Find an endpoint that does not coincide with a pole, and project it onto the xy plane. If the projection coincide with the negative x, project onto the zx plane. Otherwise project onto the yz plane.
friend class Arr_geodesic_arc_on_sphere_traits_2< Kernel > [friend] |
const Traits* Arr_geodesic_arc_on_sphere_traits_2< T_Kernel >::Intersect_2::m_traits [protected] |
The traits (in case it has state)