DGtal 2.0.0
Loading...
Searching...
No Matches
PointConverter< RowMajorStorage > Struct Reference
Inheritance diagram for PointConverter< RowMajorStorage >:
[legend]

Static Public Member Functions

template<typename TPoint>
static TPoint apply (TPoint const &aPoint)

Detailed Description

Definition at line 164 of file testLinearizer.cpp.

Member Function Documentation

◆ apply()

template<typename TPoint>
TPoint PointConverter< RowMajorStorage >::apply ( TPoint const & aPoint)
inlinestatic

Definition at line 168 of file testLinearizer.cpp.

169 {
171 for ( auto i = 0 ; i < (int)TPoint::dimension ; ++i )
172 result[i] = aPoint[ TPoint::dimension - i - 1 ];
173
174 return result;
175 }
Converter between col-major and row-major storage order.

References aPoint.


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