DGtal 2.1.0
Loading...
Searching...
No Matches
DGtal::detail::AffineGeometryScalarOperations< double > Struct Reference

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 Public Member Functions

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)
 

Friends

template<typename T >
struct DGtal::AffineGeometry
 
template<typename T >
struct DGtal::AffineBasis
 

Detailed Description

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.

Member Function Documentation

◆ gcd()

static double DGtal::detail::AffineGeometryScalarOperations< double >::gcd ( double  ,
double   
)
inlinestatic
Returns
1.0

Definition at line 290 of file AffineGeometry.h.

291 {
292 return 1.0;
293 }

◆ getMultipliers()

static std::pair< double, double > DGtal::detail::AffineGeometryScalarOperations< double >::getMultipliers ( double  a,
double  b 
)
inlinestatic
Parameters
[in]aany number
[in]bany 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 }
STL namespace.

◆ isNonZero()

static bool DGtal::detail::AffineGeometryScalarOperations< double >::isNonZero ( double  x,
double  tol 
)
inlinestatic
Parameters
[in]xany number
[in]tolthe 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()

static double DGtal::detail::AffineGeometryScalarOperations< double >::lcmPositive ( double  ,
double   
)
inlinestatic
Returns
1.0

Definition at line 297 of file AffineGeometry.h.

298 {
299 return 1.0;
300 }

Friends And Related Symbol Documentation

◆ DGtal::AffineBasis

template<typename T >
friend struct DGtal::AffineBasis
friend

Definition at line 273 of file AffineGeometry.h.

◆ DGtal::AffineGeometry

template<typename T >
friend struct DGtal::AffineGeometry
friend

Definition at line 272 of file AffineGeometry.h.


The documentation for this struct was generated from the following file: