Aim: Internal class used by AffineGeometry to differentiate operations on lattice points and operations on points with floating-point coordinates. This specialization assume float for coordinates.
More...
#include <DGtal/geometry/tools/AffineGeometry.h>
Aim: Internal class used by AffineGeometry to differentiate operations on lattice points and operations on points with floating-point coordinates. This specialization assume float for coordinates.
Description of template class 'AffineGeometryScalarOperations'
Definition at line 323 of file AffineGeometry.h.
◆ gcd()
◆ getMultipliers()
- Parameters
-
| [in] | a | any number |
| [in] | b | any number |
- Returns
- the pair ( b, a ), which allows to cancel a component in a Gauss pivoting algorithm.
Definition at line 334 of file AffineGeometry.h.
335 {
336 return (b >= 0 )
337 ? std::make_pair( b, a )
338 :
std::make_pair( -b, -a );
339 }
◆ isNonZero()
- Parameters
-
| [in] | x | any number |
| [in] | tol | the accepted tolerance value below which the number is considered null (typically 1e-12). |
- Returns
- 'true' iff x is non zero.
Definition at line 363 of file AffineGeometry.h.
364 {
365 const double dx = double(x);
366 return (dx > tol) || ( dx < -tol );
367 }
◆ lcmPositive()
◆ DGtal::AffineBasis
◆ DGtal::AffineGeometry
The documentation for this struct was generated from the following file: