|
| virtual | ~ParametricPath ()=default |
| | Virtual destructor.
|
| virtual Point | getPoint (double t) const noexcept=0 |
| | Position on the path at parameter t.
|
| virtual Point | getVelocity (double t) const noexcept=0 |
| | First derivative dP/dt at parameter t (w.r.t. path parameter).
|
| virtual Point | getAcceleration (double t) const noexcept=0 |
| | Second derivative d²P/dt² at parameter t (w.r.t. path parameter).
|
| virtual Angle | getTheta (double t) const noexcept |
| | Path heading: orientation of the tangent dP/dt.
|
| virtual Curvature | getCurvature (double t) const noexcept |
| | Signed curvature κ(t) = wedge(dP/dt, d²P/dt²) / |dP/dt|³.
|
| virtual Length | getLength (double tStart=0, double tEnd=1) const noexcept |
| | Arclength along the path between parameters tStart and tEnd.
|
| virtual double | stepT (double t, Length distance) const noexcept |
| | Advance the parameter by a target arclength measured along the path.
|
| virtual DiscretePath | toDiscrete (Length distance, bool includeEnd=true) const |
Differentiable 2D path over a unit-interval parameter t ∈ [0, 1].
Implementers provide position and its first two derivatives with respect to the dimensionless path parameter t. Higher-level queries—heading, curvature, arclength, parameter stepping by distance, and discretization—are derived here.
Units & semantics
- getPoint(t) → position in meters (Point stores meter-valued components).
- getVelocity(t) → dP/dt in meters (derivative w.r.t. parameter, not time).
- getAcceleration(t) → d²P/dt² in meters (w.r.t. parameter).
- getTheta(t) → heading of the tangent (radians).
- getCurvature(t) → signed curvature κ = wedge(dP/dt, d²P/dt²) / |dP/dt|³ (1/meters).
- getLength(a,b) → ∫_a^b |dP/dt| dt (meters).
Domain: All functions expect 0 ≤ t ≤ 1 (implementations may clamp internally).
Continuity: For stable curvature, the path should be at least C¹ and piecewise C².