|
DGtal 2.1.0
|
Aim: Internal class used by AffineGeometry to differentiate operations on point coordinates, which may be integer or floating-point numbers.. The generic class assume integer coordinates, while there are two specializations for float and double. More...
#include <DGtal/geometry/tools/AffineGeometry.h>
Public Types | |
| typedef TScalar | Scalar |
| typedef Scalar | Integer |
| In the generic class, the type scalar should be an integral type. | |
Static Private Member Functions | |
static internal services | |
| static std::pair< Integer, Integer > | getMultipliers (Integer a, Integer b) |
| static Integer | gcd (Integer a, Integer b) |
| static Integer | lcmPositive (Integer a, Integer b) |
| static bool | isNonZero (Integer x, double) |
Friends | |
| template<typename T > | |
| struct | DGtal::AffineGeometry |
| template<typename T > | |
| struct | DGtal::AffineBasis |
Aim: Internal class used by AffineGeometry to differentiate operations on point coordinates, which may be integer or floating-point numbers.. The generic class assume integer coordinates, while there are two specializations for float and double.
Description of template class 'AffineGeometryScalarOperations'
| TScalar | any integer or floating point number type. |
Definition at line 202 of file AffineGeometry.h.
| typedef Scalar DGtal::detail::AffineGeometryScalarOperations< TScalar >::Integer |
In the generic class, the type scalar should be an integral type.
Definition at line 209 of file AffineGeometry.h.
| typedef TScalar DGtal::detail::AffineGeometryScalarOperations< TScalar >::Scalar |
Definition at line 207 of file AffineGeometry.h.
|
inlinestaticprivate |
| [in] | a | any integer number |
| [in] | b | any integer number |
Definition at line 237 of file AffineGeometry.h.
References DGtal::IntegerComputer< TInteger >::staticGcd().
Referenced by DGtal::detail::AffineGeometryScalarOperations< TScalar >::getMultipliers(), and DGtal::detail::AffineGeometryScalarOperations< TScalar >::lcmPositive().
|
inlinestaticprivate |
| [in] | a | any integer number |
| [in] | b | any integer number |
Definition at line 222 of file AffineGeometry.h.
References g(), and DGtal::detail::AffineGeometryScalarOperations< TScalar >::gcd().
Referenced by DGtal::AffineGeometry< TPoint >::reduceVector(), and DGtal::AffineGeometry< TPoint >::reduceVector().
|
inlinestaticprivate |
| [in] | x | any integer number |
Definition at line 257 of file AffineGeometry.h.
Referenced by DGtal::AffineGeometry< TPoint >::addIfIndependent(), DGtal::AffineGeometry< TPoint >::independentVector(), DGtal::AffineGeometry< TPoint >::reduceVector(), and DGtal::AffineGeometry< TPoint >::reduceVector().
|
inlinestaticprivate |
| [in] | a | any integer number |
| [in] | b | any integer number |
Definition at line 247 of file AffineGeometry.h.
References g(), and DGtal::detail::AffineGeometryScalarOperations< TScalar >::gcd().
Definition at line 205 of file AffineGeometry.h.
Definition at line 204 of file AffineGeometry.h.