Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
Geom::Intersection< TimeA, TimeB > Class Template Reference

Intersection between two shapes. More...

#include <intersection.h>

Inheritance diagram for Geom::Intersection< TimeA, TimeB >:

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)
 

Detailed Description

template<typename TimeA = Coord, typename TimeB = TimeA>
class Geom::Intersection< TimeA, TimeB >

Intersection between two shapes.

Definition at line 46 of file intersection.h.

Constructor & Destructor Documentation

◆ Intersection() [1/2]

template<typename TimeA = Coord, typename TimeB = TimeA>
template<typename TA , typename TB >
Geom::Intersection< TimeA, TimeB >::Intersection ( TA const &  sa,
TB const &  sb,
TimeA const &  ta,
TimeB const &  tb 
)
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.

◆ Intersection() [2/2]

template<typename TimeA = Coord, typename TimeB = TimeA>
Geom::Intersection< TimeA, TimeB >::Intersection ( TimeA const &  ta,
TimeB const &  tb,
Point const &  p 
)
inline

Additionally report the intersection point.

Definition at line 61 of file intersection.h.

Member Function Documentation

◆ operator Point()

template<typename TimeA = Coord, typename TimeB = TimeA>
Geom::Intersection< TimeA, TimeB >::operator Point ( ) const
inline

Implicit conversion to Point.

Definition at line 72 of file intersection.h.

References Geom::Intersection< TimeA, TimeB >::_point.

◆ operator<()

template<typename TimeA = Coord, typename TimeB = TimeA>
bool Geom::Intersection< TimeA, TimeB >::operator< ( Intersection< TimeA, TimeB > const &  other) const
inline

◆ operator==()

template<typename TimeA = Coord, typename TimeB = TimeA>
bool Geom::Intersection< TimeA, TimeB >::operator== ( Intersection< TimeA, TimeB > const &  other) const
inline

◆ point()

template<typename TimeA = Coord, typename TimeB = TimeA>
Point Geom::Intersection< TimeA, TimeB >::point ( ) const
inline

Friends And Related Symbol Documentation

◆ swap

template<typename TimeA = Coord, typename TimeB = TimeA>
void swap ( Intersection< TimeA, TimeB > &  a,
Intersection< TimeA, TimeB > &  b 
)
friend

Definition at line 76 of file intersection.h.

Member Data Documentation

◆ _point

template<typename TimeA = Coord, typename TimeB = TimeA>
Point Geom::Intersection< TimeA, TimeB >::_point
private

◆ first

template<typename TimeA = Coord, typename TimeB = TimeA>
TimeA Geom::Intersection< TimeA, TimeB >::first

◆ second

template<typename TimeA = Coord, typename TimeB = TimeA>
TimeB Geom::Intersection< TimeA, TimeB >::second

The documentation for this class was generated from the following file: