#include <aims/curve/curve.h>
Definition at line 50 of file curve.h.
◆ const_iterator
◆ Point_t
◆ Scalar_t
◆ begin()
Forward iterator on the first point.
Definition at line 174 of file curve.h.
◆ clear()
void aims::Polyline::clear |
( |
| ) |
|
|
inline |
◆ end()
Forward iterator after the last point.
Definition at line 181 of file curve.h.
◆ length()
Scalar_t aims::Polyline::length |
( |
| ) |
const |
Compute the line's length (sum of every segment's length)
◆ operator[]()
Return the point corresponding to an index.
Definition at line 188 of file curve.h.
◆ push_back()
bool aims::Polyline::push_back |
( |
const Point_t & |
| ) |
|
Add a point if it is different from the last point.
Return true if the point has been added.
◆ resample()
void aims::Polyline::resample |
( |
size_t |
numberOfPoints, |
|
|
std::vector< Point_t > & |
|
|
) |
| |
Resample the Polyline and fills a vector with result.
◆ reserve()
void aims::Polyline::reserve |
( |
size_t |
space | ) |
|
|
inline |
Reserve space for the points (does not change the points in the line).
There is no read/write (i.e. non const) version of this method because it is important to check that two identical points are not added in the polyline. It avoids possible crash when interpolating the polyline.
Definition at line 195 of file curve.h.
◆ size()
size_t aims::Polyline::size |
( |
| ) |
const |
|
inline |
Return the number of points.
Definition at line 167 of file curve.h.
The documentation for this class was generated from the following file: