DGtal
1.5.beta
|
Aim: Class that implements an orientation functor, ie. it provides a way to compute the orientation of three given 2d points. More precisely, it returns: More...
#include <DGtal/geometry/tools/determinant/InHalfPlaneBy2x2DetComputer.h>
Public Types | |
typedef TPoint | Point |
typedef std::array< Point, 2 > | PointArray |
typedef PointArray::size_type | SizeArray |
typedef TDetComputer | DetComputer |
typedef TDetComputer::ArgumentInteger | ArgumentInteger |
typedef TDetComputer::ResultInteger | Value |
Public Member Functions | |
BOOST_CONCEPT_ASSERT ((C2x2DetComputer< DetComputer >)) | |
void | init (const Point &aP, const Point &aQ) |
void | init (const PointArray &aA) |
Value | operator() (const Point &aR) const |
void | selfDisplay (std::ostream &out) const |
bool | isValid () const |
Static Public Attributes | |
static const SizeArray | size = 2 |
Private Attributes | |
ArgumentInteger | myA |
ArgumentInteger | myB |
DetComputer | myDetComputer |
Aim: Class that implements an orientation functor, ie. it provides a way to compute the orientation of three given 2d points. More precisely, it returns:
Basic usage:
TPoint | a model of point |
TDetComputer | a model of C2x2DetComputer |
NB: The robustness of the computation depends on the robustness of the determinant computer. However, in order to be sure that the result will be exact, you should be sure that the chosen determinant computer can safely deal with integers coded with b+1 bits if the points coordinates are coded with b bits.
Definition at line 92 of file InHalfPlaneBy2x2DetComputer.h.
typedef TDetComputer::ArgumentInteger DGtal::InHalfPlaneBy2x2DetComputer< TPoint, TDetComputer >::ArgumentInteger |
Type of input integers for the determinant computer
NB: the type of the points coordinates are casted into ArgumentInteger before being passed to the determinant computer.
Definition at line 127 of file InHalfPlaneBy2x2DetComputer.h.
typedef TDetComputer DGtal::InHalfPlaneBy2x2DetComputer< TPoint, TDetComputer >::DetComputer |
Type of determinant computer
Definition at line 118 of file InHalfPlaneBy2x2DetComputer.h.
typedef TPoint DGtal::InHalfPlaneBy2x2DetComputer< TPoint, TDetComputer >::Point |
Type of points
Definition at line 100 of file InHalfPlaneBy2x2DetComputer.h.
typedef std::array<Point,2> DGtal::InHalfPlaneBy2x2DetComputer< TPoint, TDetComputer >::PointArray |
Type of point array
Definition at line 105 of file InHalfPlaneBy2x2DetComputer.h.
typedef PointArray::size_type DGtal::InHalfPlaneBy2x2DetComputer< TPoint, TDetComputer >::SizeArray |
Type used to represent the size of the array
Definition at line 109 of file InHalfPlaneBy2x2DetComputer.h.
typedef TDetComputer::ResultInteger DGtal::InHalfPlaneBy2x2DetComputer< TPoint, TDetComputer >::Value |
Type of integer for the result
Definition at line 132 of file InHalfPlaneBy2x2DetComputer.h.
DGtal::InHalfPlaneBy2x2DetComputer< TPoint, TDetComputer >::BOOST_CONCEPT_ASSERT | ( | (C2x2DetComputer< DetComputer >) | ) |
void DGtal::InHalfPlaneBy2x2DetComputer< TPoint, TDetComputer >::init | ( | const Point & | aP, |
const Point & | aQ | ||
) |
Initialisation.
aP | first point |
aQ | second point |
void DGtal::InHalfPlaneBy2x2DetComputer< TPoint, TDetComputer >::init | ( | const PointArray & | aA | ) |
Initialisation.
aA | array of two points |
bool DGtal::InHalfPlaneBy2x2DetComputer< TPoint, TDetComputer >::isValid | ( | ) | const |
Checks the validity/consistency of the object.
Value DGtal::InHalfPlaneBy2x2DetComputer< TPoint, TDetComputer >::operator() | ( | const Point & | aR | ) | const |
Main operator.
aR | any point to test |
void DGtal::InHalfPlaneBy2x2DetComputer< TPoint, TDetComputer >::selfDisplay | ( | std::ostream & | out | ) | const |
Writes/Displays the object on an output stream.
out | the output stream where the object is written. |
|
private |
Coordinates of the first point.
Definition at line 189 of file InHalfPlaneBy2x2DetComputer.h.
|
private |
Definition at line 189 of file InHalfPlaneBy2x2DetComputer.h.
|
mutableprivate |
A 2x2 determinant computer
Definition at line 193 of file InHalfPlaneBy2x2DetComputer.h.
|
static |
static size of the array, ie. 2
Definition at line 113 of file InHalfPlaneBy2x2DetComputer.h.