30 #include "../WBoundingBox.h"
32 #include "../WMixinVector.h"
33 #include "linearAlgebra/WPosition.h"
49 explicit WLine(
const std::vector< WPosition > &points );
113 double pathLength(
const WLine& line );
137 int equalsDelta(
const WLine& line,
const WLine& other,
double delta );
147 double maxSegmentLength(
const WLine& line );
157 bool hasMorePointsThen(
const WLine& first,
const WLine& second );
159 inline bool hasMorePointsThen(
const WLine& first,
const WLine& second )
161 return first.
size() > second.
size();
A line is an ordered sequence of WPositions.
void unifyDirectionBy(const WLine &other)
Put the line into reverse ordering if the reverse ordering would have a similar direction to the give...
void resampleByNumberOfPoints(size_t numPoints)
Resample this line so it has a number of given points afterwards.
void resampleBySegmentLength(double newSegementLength)
Resample this line so there are only segements of the given length.
void removeAdjacentDuplicates()
Collapse samplepoints which are equal and neighboured.
This only is a 3d double vector.
Unit tests the WLine class.
This is taken from OpenSceneGraph but copy and pasted in order to reduce dependency...
void reverseOrder()
Reverses the order of the points.
size_type size() const
Wrapper around std::vector member function.
WLine()
Creates an empty line.