RaidZeroLib
Coroutine robot framework for VEX V5
Loading...
Searching...
No Matches
Pathing

Parametric paths (cubic Bézier curves) and discretised paths. More...

Classes

class  rz::CubicBezier
 Cubic Bézier parametric path segment. More...
class  rz::DiscretePath
 Immutable sequence of 2D waypoints with unit-safe geometry. More...
class  rz::ParametricPath
 Differentiable 2D path over a unit-interval parameter t ∈ [0, 1]. More...
class  rz::PiecewiseCubicBezier
 Piecewise cubic Bézier path over t ∈ [0, 1] with segment-uniform parameterization. More...

Functions

DiscretePath::const_iterator rz::closestPoint (DiscretePath::const_iterator begin, DiscretePath::const_iterator end, const Point &point)
 Iterator-based closest-point search by Euclidean distance.

Detailed Description

Parametric paths (cubic Bézier curves) and discretised paths.

Function Documentation

◆ closestPoint()

Iterator-based closest-point search by Euclidean distance.

Returns an iterator to the element in [begin, end) minimizing distTo(point). If the range is empty, returns end.

Parameters
beginConst iterator to the first waypoint.
endConst iterator one past the last waypoint.
pointQuery point (meters).
Returns
Iterator to the closest waypoint, or end if the range is empty.