Inkscape
Vector Graphics Editor
|
Intersection between two shapes. More...
#include <intersection.h>
Public Member Functions | |
template<typename TA , typename TB > | |
Intersection (TA const &sa, TB const &sb, TimeA const &ta, TimeB const &tb) | |
Construct from shape references and time values. | |
Intersection (TimeA const &ta, TimeB const &tb, Point const &p) | |
Additionally report the intersection point. | |
Point | point () const |
Intersection point, as calculated by the intersection algorithm. | |
operator Point () const | |
Implicit conversion to Point. | |
bool | operator== (Intersection const &other) const |
bool | operator< (Intersection const &other) const |
Public Attributes | |
TimeA | first |
First shape and time value. | |
TimeB | second |
Second shape and time value. | |
Private Attributes | |
Point | _point |
Friends | |
void | swap (Intersection &a, Intersection &b) |
Intersection between two shapes.
Definition at line 46 of file intersection.h.
|
inline |
Construct from shape references and time values.
By default, the intersection point will be halfway between the evaluated points on the two shapes.
Definition at line 54 of file intersection.h.
|
inline |
Additionally report the intersection point.
Definition at line 61 of file intersection.h.
|
inline |
Implicit conversion to Point.
Definition at line 72 of file intersection.h.
References Geom::Intersection< TimeA, TimeB >::_point.
|
inline |
Definition at line 88 of file intersection.h.
References Geom::Intersection< TimeA, TimeB >::first, and Geom::Intersection< TimeA, TimeB >::second.
|
inline |
Definition at line 83 of file intersection.h.
References Geom::Intersection< TimeA, TimeB >::first, and Geom::Intersection< TimeA, TimeB >::second.
|
inline |
Intersection point, as calculated by the intersection algorithm.
Definition at line 68 of file intersection.h.
References Geom::Intersection< TimeA, TimeB >::_point.
Referenced by Geom::PlanarGraph< EdgeLabel >::_mergeWyeConfiguration(), Geom::EllipticalArc::_validateIntersection(), and Geom::Ellipse::intersect().
|
friend |
Definition at line 76 of file intersection.h.
|
private |
Definition at line 103 of file intersection.h.
Referenced by Geom::Intersection< TimeA, TimeB >::operator Point(), and Geom::Intersection< TimeA, TimeB >::point().
TimeA Geom::Intersection< TimeA, TimeB >::first |
First shape and time value.
Definition at line 96 of file intersection.h.
Referenced by Geom::PlanarGraph< EdgeLabel >::_mergeWyeConfiguration(), Geom::EllipticalArc::_validateIntersection(), Geom::Ellipse::intersect(), Geom::Intersection< TimeA, TimeB >::operator<(), and Geom::Intersection< TimeA, TimeB >::operator==().
TimeB Geom::Intersection< TimeA, TimeB >::second |
Second shape and time value.
Definition at line 98 of file intersection.h.
Referenced by Geom::PlanarGraph< EdgeLabel >::_mergeWyeConfiguration(), Geom::EllipticalArc::_validateIntersection(), Geom::Intersection< TimeA, TimeB >::operator<(), and Geom::Intersection< TimeA, TimeB >::operator==().