DGtal
1.4.2
|
#include <DGtal/geometry/curves/FrechetShortcut.h>
Public Member Functions | |
Cone () | |
Cone (double a0, double a1) | |
Cone (double x, double y, double x0, double y0, double x1, double y1) | |
Cone (const Cone &c)=default | |
Cone & | operator= (const Cone &c) |
bool | isEmpty () const |
void | intersectCones (Cone c) |
Cone | intersectConesSimple (Cone c) |
Cone | symmetricalCone () |
void | selfDisplay (std::ostream &out) const |
Data Fields | |
double | myMin |
double | myMax |
bool | myInf |
Class Cone: data structures and methods to handle the cone update used to test if the width of the shortcut is lower than the error.
Definition at line 266 of file FrechetShortcut.h.
DGtal::FrechetShortcut< TIterator, TInteger >::Cone::Cone | ( | ) |
DGtal::FrechetShortcut< TIterator, TInteger >::Cone::Cone | ( | double | a0, |
double | a1 | ||
) |
Constructor from two angles
a0 | an angle |
a1 | a second angle |
DGtal::FrechetShortcut< TIterator, TInteger >::Cone::Cone | ( | double | x, |
double | y, | ||
double | x0, | ||
double | y0, | ||
double | x1, | ||
double | y1 | ||
) |
Constructor from three points x, x0, x1. The cone is defined by the two lines (xx0) and (xx1)
x | x |
y | y |
x0 | x0 |
y0 | y0 |
x1 | x1 |
y1 | y1 |
|
default |
Default copy constructor.
c | other cone to copy. |
void DGtal::FrechetShortcut< TIterator, TInteger >::Cone::intersectCones | ( | Cone | c | ) |
Intersect two cones: modifies 'this'
c | a cone to intersect with 'this' |
Cone DGtal::FrechetShortcut< TIterator, TInteger >::Cone::intersectConesSimple | ( | Cone | c | ) |
Intersect two half cones
c | a cone to intersection with 'this' |
bool DGtal::FrechetShortcut< TIterator, TInteger >::Cone::isEmpty | ( | ) | const |
Test if the cone is empty
Cone& DGtal::FrechetShortcut< TIterator, TInteger >::Cone::operator= | ( | const Cone & | c | ) |
Assignement
c | another cone |
void DGtal::FrechetShortcut< TIterator, TInteger >::Cone::selfDisplay | ( | std::ostream & | out | ) | const |
Writes/Displays the object on an output stream.
out | the output stream where the object is written. |
Cone DGtal::FrechetShortcut< TIterator, TInteger >::Cone::symmetricalCone | ( | ) |
Computes the symmetrical half cone
bool DGtal::FrechetShortcut< TIterator, TInteger >::Cone::myInf |
Boolean: true if the cone is infinite
Definition at line 282 of file FrechetShortcut.h.
double DGtal::FrechetShortcut< TIterator, TInteger >::Cone::myMax |
Angle max of the cone
Definition at line 277 of file FrechetShortcut.h.
double DGtal::FrechetShortcut< TIterator, TInteger >::Cone::myMin |
Angle min of the cone
Definition at line 272 of file FrechetShortcut.h.