The Polyline class implements a sequence of line segments and is used to approximate a real spline.
More...
#include <polyline.h>
|
| Polyline (const std::vector< QVector3D > &controlPoints={{0.f, 0.f, 0.f},{1.f, 0.f, 0.f}}) |
|
QVector3D | getPosition (float distance) const |
|
QVector3D | getTangent (float distance) const |
|
float | length () const |
|
The Polyline class implements a sequence of line segments and is used to approximate a real spline.
terminus::Polyline::Polyline |
( |
const std::vector< QVector3D > & |
controlPoints = {{0.f, 0.f, 0.f}, {1.f, 0.f, 0.f}} | ) |
|
void terminus::Polyline::calculateKnotSequence |
( |
| ) |
|
|
protected |
int terminus::Polyline::getIndex |
( |
float |
distance | ) |
const |
|
protected |
QVector3D terminus::Polyline::getPosition |
( |
float |
distance | ) |
const |
- Parameters
-
- Returns
- position on this Polyline at the given distance from the origin position (first control point)
QVector3D terminus::Polyline::getTangent |
( |
float |
distance | ) |
const |
- Parameters
-
- Returns
- tangent of this Polyline at the given distance from the origin position (first control point)
float terminus::Polyline::length |
( |
| ) |
const |
- Returns
- maximum distance that this Polyline is defined for
std::vector<QVector3D> terminus::Polyline::m_controlPoints |
|
protected |
std::vector<float> terminus::Polyline::m_knotSequence |
|
protected |
float terminus::Polyline::m_tEnd |
|
protected |
The documentation for this class was generated from the following files: