DGtal 2.1.0
Loading...
Searching...
No Matches
DGtal::detail::AffineGeometryPointOperations< dim, double, TContainer > Struct Template Reference

Aim: Internal class used by AffineGeometry to differentiate operations on lattice points and operations on points with floating-point coordinates. This specialization assumes double as components. More...

#include <DGtal/geometry/tools/AffineGeometry.h>

Public Types

typedef PointVector< dim, double, TContainer > Point
 
typedef Point::Coordinate Scalar
 

Static Private Member Functions

static internal services
static void normalizeVector (Point &w, double x)
 
template<typename TOtherPoint >
static Point cast (const TOtherPoint &other)
 Specialized version to cast points to other point type.
 

Friends

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

Detailed Description

template<DGtal::Dimension dim, typename TContainer>
struct DGtal::detail::AffineGeometryPointOperations< dim, double, TContainer >

Aim: Internal class used by AffineGeometry to differentiate operations on lattice points and operations on points with floating-point coordinates. This specialization assumes double as components.

Description of template class 'AffineGeometryPointOperations'

Definition at line 116 of file AffineGeometry.h.

Member Typedef Documentation

◆ Point

template<DGtal::Dimension dim, typename TContainer >
typedef PointVector< dim, double, TContainer > DGtal::detail::AffineGeometryPointOperations< dim, double, TContainer >::Point

Definition at line 120 of file AffineGeometry.h.

◆ Scalar

template<DGtal::Dimension dim, typename TContainer >
typedef Point::Coordinate DGtal::detail::AffineGeometryPointOperations< dim, double, TContainer >::Scalar

Definition at line 121 of file AffineGeometry.h.

Member Function Documentation

◆ cast()

template<DGtal::Dimension dim, typename TContainer >
template<typename TOtherPoint >
static Point DGtal::detail::AffineGeometryPointOperations< dim, double, TContainer >::cast ( const TOtherPoint &  other)
inlinestaticprivate

Specialized version to cast points to other point type.

Definition at line 139 of file AffineGeometry.h.

140 {
141 typedef typename TOtherPoint::Coordinate OtherScalar;
142 Point result;
143 for ( std::size_t i = 0; i < Point::dimension; i++ )
144 result[ i ] = NumberTraits<OtherScalar>::castToDouble( other[ i ] );
145 return result;
146 }
static const Dimension dimension
Copy of the static dimension of the Point/Vector.
static double castToDouble(const std::decay< T >::type &aT)
Cast method to double (for I/O or board export uses only).

References DGtal::PointVector< dim, TEuclideanRing, TContainer >::dimension.

◆ normalizeVector()

template<DGtal::Dimension dim, typename TContainer >
static void DGtal::detail::AffineGeometryPointOperations< dim, double, TContainer >::normalizeVector ( Point w,
double  x 
)
inlinestaticprivate

Specialized version to normalize a vector in case of double value parameter.

Definition at line 131 of file AffineGeometry.h.

132 {
133 w /= sqrt( x );
134 }

Friends And Related Symbol Documentation

◆ DGtal::AffineBasis

template<DGtal::Dimension dim, typename TContainer >
template<typename T >
friend struct DGtal::AffineBasis
friend

Definition at line 119 of file AffineGeometry.h.

◆ DGtal::AffineGeometry

template<DGtal::Dimension dim, typename TContainer >
template<typename T >
friend struct DGtal::AffineGeometry
friend

Definition at line 118 of file AffineGeometry.h.


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