DGtal 1.4.0
|
Aim: Class that provides a way of computing the sign of the determinant of a 2x2 matrix from its four coefficients, ie. More...
#include <DGtal/geometry/tools/determinant/Filtered2x2DetComputer.h>
Public Types | |
typedef TDetComputer::ArgumentInteger | ArgumentInteger |
typedef ArgumentInteger | Integer |
typedef ArgumentInteger | argument_type |
typedef TDetComputer::ResultInteger | ResultInteger |
typedef ResultInteger | Value |
typedef ResultInteger | result_type |
Public Member Functions | |
BOOST_CONCEPT_ASSERT ((C2x2DetComputer< TDetComputer >)) | |
BOOST_STATIC_ASSERT ((std::numeric_limits< ArgumentInteger >::is_iec559)) | |
void | init (const ArgumentInteger &aA, const ArgumentInteger &aB) |
ResultInteger | operator() (const ArgumentInteger &aX, const ArgumentInteger &aY) const |
ResultInteger | operator() (const ArgumentInteger &aA, const ArgumentInteger &aB, const ArgumentInteger &aX, const ArgumentInteger &aY) |
void | selfDisplay (std::ostream &out) const |
bool | isValid () const |
Private Attributes | |
ArgumentInteger | myA |
ArgumentInteger | myB |
TDetComputer | myDetComputer |
Aim: Class that provides a way of computing the sign of the determinant of a 2x2 matrix from its four coefficients, ie.
\( \begin{vmatrix} a & x \\ b & y \end{vmatrix} \)
The coefficients must be integers, with an absolute value less than 2^53, of type 'double'.
It returns:
If the result of \( ay - bx \) is not null, the IEC-559 / IEEE-754 standard guarantees that the result is not zero (filtering step). Otherwise, we use another method to conclude.
This class is a model of C2x2DetComputer.
TDetComputer | any model of C2x2DetComputer |
Definition at line 83 of file Filtered2x2DetComputer.h.
typedef ArgumentInteger DGtal::Filtered2x2DetComputer< TDetComputer >::argument_type |
STL alias of type ArgumentInteger
Definition at line 104 of file Filtered2x2DetComputer.h.
typedef TDetComputer::ArgumentInteger DGtal::Filtered2x2DetComputer< TDetComputer >::ArgumentInteger |
Type of integer for the input coefficients of the 2x2 matrix
Definition at line 92 of file Filtered2x2DetComputer.h.
typedef ArgumentInteger DGtal::Filtered2x2DetComputer< TDetComputer >::Integer |
DGtal alias of type ArgumentInteger
Definition at line 100 of file Filtered2x2DetComputer.h.
typedef ResultInteger DGtal::Filtered2x2DetComputer< TDetComputer >::result_type |
STL alias of type ResultInteger
Definition at line 117 of file Filtered2x2DetComputer.h.
typedef TDetComputer::ResultInteger DGtal::Filtered2x2DetComputer< TDetComputer >::ResultInteger |
Type of integer for the returned determinant
Definition at line 109 of file Filtered2x2DetComputer.h.
typedef ResultInteger DGtal::Filtered2x2DetComputer< TDetComputer >::Value |
DGtal alias type of ResultInteger
Definition at line 113 of file Filtered2x2DetComputer.h.
DGtal::Filtered2x2DetComputer< TDetComputer >::BOOST_CONCEPT_ASSERT | ( | (C2x2DetComputer< TDetComputer >) | ) |
DGtal::Filtered2x2DetComputer< TDetComputer >::BOOST_STATIC_ASSERT | ( | (std::numeric_limits< ArgumentInteger >::is_iec559) | ) |
void DGtal::Filtered2x2DetComputer< TDetComputer >::init | ( | const ArgumentInteger & | aA, |
const ArgumentInteger & | aB ) |
Initialisation.
aA | 0-component of the first column vector |
aB | 1-component of the first column vector |
bool DGtal::Filtered2x2DetComputer< TDetComputer >::isValid | ( | ) | const |
Checks the validity/consistency of the object.
ResultInteger DGtal::Filtered2x2DetComputer< TDetComputer >::operator() | ( | const ArgumentInteger & | aA, |
const ArgumentInteger & | aB, | ||
const ArgumentInteger & | aX, | ||
const ArgumentInteger & | aY ) |
Operator.
aA | 0-component of the first column vector |
aB | 1-component of the first column vector |
aX | 0-component of the second column vector |
aY | 1-component of the second column vector |
ResultInteger DGtal::Filtered2x2DetComputer< TDetComputer >::operator() | ( | const ArgumentInteger & | aX, |
const ArgumentInteger & | aY ) const |
Incremental operator.
aX | 0-component of the second column vector |
aY | 1-component of the second column vector |
void DGtal::Filtered2x2DetComputer< TDetComputer >::selfDisplay | ( | std::ostream & | out | ) | const |
Writes/Displays the object on an output stream.
out | the output stream where the object is written. |
|
private |
Data member used to store the 0-component of the first column vector, ie. a.
Definition at line 176 of file Filtered2x2DetComputer.h.
|
private |
Data member used to store the 1-component of the first column vector, ie. b.
Definition at line 181 of file Filtered2x2DetComputer.h.
|
mutableprivate |
Object that can return (the sign of) the determinant, after the filtering.
Definition at line 186 of file Filtered2x2DetComputer.h.