![]() |
RaidZeroLib
Coroutine robot framework for VEX V5
|
Control knot defining both position and tangent handle geometry. More...
#include <CubicBezier.hpp>
Public Member Functions | |
| Knot (Length x, Length y, Angle theta, Length magnitude) noexcept | |
| Constructs a control knot with position, tangent angle, and handle length. | |
| Point | getPoint () const noexcept |
| Returns the anchor position (x, y) of the control knot. | |
| Point | getForwardControl () const noexcept |
| Returns the forward (outgoing) control handle in world coordinates. | |
| Point | getBackwardControl () const noexcept |
| Returns the backward (incoming) control handle in world coordinates. | |
Control knot defining both position and tangent handle geometry.
Each Knot specifies a point (x, y) in meters, an outgoing tangent direction theta in radians, and a tangent handle length magnitude in meters. From these, two derived “handles” are computed:
These handles are used when constructing Bézier segments: the start control point contributes its forward handle, and the end control point contributes its backward handle.
Constructs a control knot with position, tangent angle, and handle length.
| x | X coordinate (meters). |
| y | Y coordinate (meters). |
| theta | Tangent direction (radians). |
| magnitude | Length of tangent handle (meters). |
|
noexcept |
Returns the backward (incoming) control handle in world coordinates.
|
noexcept |
Returns the forward (outgoing) control handle in world coordinates.
|
noexcept |
Returns the anchor position (x, y) of the control knot.