|
DGtal
0.6.devel
|
#include <CircleFrom3Points.h>


Public Types | |
| typedef TPoint::Coordinate | Coordinate |
| typedef Coordinate | Distance |
| typedef TPoint | Point |
| typedef TPoint | Vector |
Public Member Functions | |
| CircleFrom3Points () | |
| CircleFrom3Points (const Point &aFirstPoint, const Point &aSecondPoint, const Point &aThirdPoint) | |
| void | init (const Point &aFirstPoint, const Point &aSecondPoint, const Point &aThirdPoint) |
| CircleFrom3Points (const CircleFrom3Points &other) | |
| CircleFrom3Points & | operator= (const CircleFrom3Points &other) |
| ~CircleFrom3Points () | |
| Distance | signedDistance (const Point &aP) const |
| bool | isValid () const |
| void | getParameters (double &cx, double &cy, double &rr) const |
| double | getCurvature () const |
| const Point & | p () const |
| const Point & | q () const |
| const Point & | r () const |
| void | selfDisplay (std::ostream &out) const |
| std::string | className () const |
Private Member Functions | |
| BOOST_STATIC_ASSERT ((TPoint::dimension==2)) | |
Private Attributes | |
| Point | myP |
| Point | myQ |
| Point | myR |
Aim: Represents a circle uniquely defined by three 2D points and that is able to return for any given 2D point its signed distance to itself.
| TPoint | a type of points. |
Definition at line 66 of file CircleFrom3Points.h.
| typedef TPoint::Coordinate DGtal::CircleFrom3Points< TPoint >::Coordinate |
Definition at line 74 of file CircleFrom3Points.h.
| typedef Coordinate DGtal::CircleFrom3Points< TPoint >::Distance |
Definition at line 75 of file CircleFrom3Points.h.
| typedef TPoint DGtal::CircleFrom3Points< TPoint >::Point |
Definition at line 76 of file CircleFrom3Points.h.
| typedef TPoint DGtal::CircleFrom3Points< TPoint >::Vector |
Definition at line 77 of file CircleFrom3Points.h.
|
inline |
|
inline |
Constructor.
| aFirstPoint | a point |
| aSecondPoint | a second point |
| aThirdPoint | a third point |
Definition at line 69 of file CircleFrom3Points.ih.
|
inline |
Copy constructor.
| other | the object to clone. |
Definition at line 82 of file CircleFrom3Points.ih.
|
inline |
|
private |
|
inline |
Definition at line 196 of file CircleFrom3Points.ih.
Referenced by DGtal::Display2DFactory::draw().
|
inline |
Definition at line 167 of file CircleFrom3Points.ih.
References DGtal::NumberTraits< T >::castToDouble().
|
inline |
Computes the parameters of the circle
| cx | returned x-coordinate of the circle |
| cy | returned y-coordinate of the circle |
| r | returned radius of the circle |
Definition at line 121 of file CircleFrom3Points.ih.
References DGtal::abs(), and DGtal::NumberTraits< T >::castToDouble().
Referenced by DGtal::Display2DFactory::draw(), DGtal::Display2DFactory::drawAnnulus(), DGtal::Display2DFactory::drawArc(), DGtal::Display2DFactory::drawSector(), and DGtal::CircleFrom2Points< TPoint >::getParameters().
|
inline |
Init.
| aFirstPoint | a point |
| aSecondPoint | a second point |
| aThirdPoint | a third point |
Definition at line 56 of file CircleFrom3Points.ih.
|
inline |
Checks the validity/consistency of the object.
Definition at line 213 of file CircleFrom3Points.ih.
|
inline |
Assignment.
| other | the object to copy. |
Definition at line 94 of file CircleFrom3Points.ih.
References DGtal::CircleFrom3Points< TPoint >::myP, DGtal::CircleFrom3Points< TPoint >::myQ, and DGtal::CircleFrom3Points< TPoint >::myR.
|
inline |
Definition at line 157 of file CircleFrom3Points.h.
Referenced by DGtal::Display2DFactory::draw(), DGtal::Display2DFactory::drawAnnulus(), DGtal::Display2DFactory::drawArc(), and DGtal::Display2DFactory::drawSector().
|
inline |
Definition at line 165 of file CircleFrom3Points.h.
Referenced by DGtal::Display2DFactory::draw(), DGtal::Display2DFactory::drawAnnulus(), DGtal::Display2DFactory::drawArc(), and DGtal::Display2DFactory::drawSector().
|
inline |
Definition at line 173 of file CircleFrom3Points.h.
Referenced by DGtal::Display2DFactory::draw(), DGtal::Display2DFactory::drawAnnulus(), DGtal::Display2DFactory::drawArc(), and DGtal::Display2DFactory::drawSector().
|
inline |
Writes/Displays the object on an output stream.
| out | the output stream where the object is written. |
Definition at line 204 of file CircleFrom3Points.ih.
|
inline |
Computes the signed distance of to the circle
| aP | the point to be tested. |
Definition at line 108 of file CircleFrom3Points.ih.
Referenced by DGtal::CircleFrom2Points< TPoint >::signedDistance().
|
private |
First point through which the circle passes
Definition at line 201 of file CircleFrom3Points.h.
Referenced by DGtal::Display2DFactory::draw(), DGtal::CircleFrom3Points< TPoint >::operator=(), and DGtal::CircleFrom3Points< Point >::p().
|
private |
Second point through which the circle passes
Definition at line 205 of file CircleFrom3Points.h.
Referenced by DGtal::CircleFrom3Points< TPoint >::operator=(), and DGtal::CircleFrom3Points< Point >::q().
|
private |
Third point through which the circle passes
Definition at line 209 of file CircleFrom3Points.h.
Referenced by DGtal::Display2DFactory::draw(), DGtal::CircleFrom3Points< TPoint >::operator=(), and DGtal::CircleFrom3Points< Point >::r().
1.8.1.1