DGtal
1.5.beta
|
Aim: This concept gathers models implementing an orientation test of \( k+1 \) points in a space of dimension \( n \). More...
#include <DGtal/geometry/tools/determinant/COrientationFunctor.h>
Public Types | |
typedef T::PointArray | PointArray |
typedef T::SizeArray | SizeArray |
Public Types inherited from DGtal::concepts::CPointFunctor< T > | |
typedef T::Point | Point |
typedef T::Value | Value |
Public Member Functions | |
BOOST_CONCEPT_ASSERT ((concepts::CSignedNumber< typename T::Value >)) | |
BOOST_CONCEPT_USAGE (COrientationFunctor) | |
Public Member Functions inherited from DGtal::concepts::CUnaryFunctor< T, T::Point, T::Value > | |
BOOST_CONCEPT_USAGE (CUnaryFunctor) | |
Private Attributes | |
T | myX |
PointArray | myA |
SizeArray | myS |
Aim: This concept gathers models implementing an orientation test of \( k+1 \) points in a space of dimension \( n \).
Description of concept 'COrientationFunctor'
The orientation of \( k+1 \) points \( (p_1, \ldots, p_{k+1}) \) is given by the sign of the algebraic distance between \( p_{k+1} \) and an algebraic variety, chosen such that it is uniquely defined by the first \( k \) points \( (p_1, \ldots, p_{k}) \).
These \( k+1 \) points are provided in two steps so that this concept is a refinement of CPointFunctor:
The returned value, which is a model of CSignedNumber, is guaranteed to be:
As a refinement of CPointFunctor, it has the following nested types:
In addition it has the following inner types:
Name | Expression | Type requirements | Return type | Precondition | Semantics | Post condition | Complexity |
---|---|---|---|---|---|---|---|
array dimension | X::size | SizeArray | size of the array, equal to k | ||||
initialization | x.init(a) | a is of type PointArray | void | implicitely set the algebraic curve | model-dependent |
InHalfPlaneBy2x2DetComputer InHalfPlaneBySimpleMatrix InGeneralizedDiskOfGivenRadius
T | the type that should be a model of COrientationFunctor. |
Definition at line 113 of file COrientationFunctor.h.
typedef T::PointArray DGtal::concepts::COrientationFunctor< T >::PointArray |
Definition at line 120 of file COrientationFunctor.h.
typedef T::SizeArray DGtal::concepts::COrientationFunctor< T >::SizeArray |
Definition at line 121 of file COrientationFunctor.h.
DGtal::concepts::COrientationFunctor< T >::BOOST_CONCEPT_ASSERT | ( | (concepts::CSignedNumber< typename T::Value >) | ) |
|
inline |
Definition at line 123 of file COrientationFunctor.h.
References DGtal::concepts::COrientationFunctor< T >::myA, DGtal::concepts::COrientationFunctor< T >::myS, DGtal::concepts::COrientationFunctor< T >::myX, and DGtal::concepts::ConceptUtils::sameType().
|
private |
Definition at line 131 of file COrientationFunctor.h.
Referenced by DGtal::concepts::COrientationFunctor< T >::BOOST_CONCEPT_USAGE().
|
private |
Definition at line 132 of file COrientationFunctor.h.
Referenced by DGtal::concepts::COrientationFunctor< T >::BOOST_CONCEPT_USAGE().
|
private |
Definition at line 130 of file COrientationFunctor.h.
Referenced by DGtal::concepts::COrientationFunctor< T >::BOOST_CONCEPT_USAGE().