29 #include "../common/math/linearAlgebra/WPosition.h"
30 #include "WTractAdapter.h"
33 : m_pointComponents( pointComponents ),
34 m_numPoints( numPoints ),
35 m_startIndex( startIndex )
42 assert(
m_pointComponents &&
"Invalid point component array inside of WTractAdapter." );
This only is a 3d double vector.
WPosition operator[](size_t index) const
Constructs and returns a WPosition out of the i'th position of this tract.
std::shared_ptr< const std::vector< float > > m_pointComponents
The array where the components of this tracts live.
WTractAdapter(std::shared_ptr< const std::vector< float > > pointComponents, size_t startIndex, size_t numPoints)
Constructs a new WTract which has numPoints points and a startIndex inside of the given components ar...
size_t m_startIndex
The index of the x-component of the first point of this tract inside the m_pointComponents array.