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>

Inheritance diagram for DGtal::detail::AffineGeometryScalarOperations< double >:
[legend]

Public Types

typedef double Scalar
typedef Scalar Integer
 In the generic class, the type scalar should be an integral type.

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 Typedef Documentation

◆ Integer

In the generic class, the type scalar should be an integral type.

Definition at line 209 of file AffineGeometry.h.

◆ Scalar

typedef double DGtal::detail::AffineGeometryScalarOperations< double >::Scalar

Definition at line 207 of file AffineGeometry.h.

Member Function Documentation

◆ gcd()

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()

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 }
Aim: Internal class used by AffineGeometry to differentiate operations on point coordinates,...

◆ isNonZero()

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()

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 }

◆ 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: