Aim: Internal class used by AffineGeometry to differentiate operations on lattice points and operations on points with floating-point coordinates. This specialization assume double for coordinates.
More...
#include <DGtal/geometry/tools/AffineGeometry.h>
|
| static std::pair< double, double > | getMultipliers (double a, double b) |
| |
| static double | gcd (double, double) |
| |
| static double | lcmPositive (double, double) |
| |
| static bool | isNonZero (double x, double tol) |
| |
Aim: Internal class used by AffineGeometry to differentiate operations on lattice points and operations on points with floating-point coordinates. This specialization assume double for coordinates.
Description of template class 'AffineGeometryScalarOperations'
Definition at line 270 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 281 of file AffineGeometry.h.
282 {
283 return (b >= 0 )
284 ? std::make_pair( b, a )
285 :
std::make_pair( -b, -a );
286 }
◆ 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 310 of file AffineGeometry.h.
311 {
312 return ( x > tol ) || ( x < -tol );
313 }
◆ lcmPositive()
◆ DGtal::AffineBasis
◆ DGtal::AffineGeometry
The documentation for this struct was generated from the following file: