pub fn generate_bspline_path(
control_x: &[f64],
control_y: &[f64],
n_path_points: usize,
degree: usize,
) -> Option<BSplinePath>Expand description
Generate a B-spline path from control points.
§Arguments
control_x- x coordinates of control pointscontrol_y- y coordinates of control pointsn_path_points- number of points to sample along the pathdegree- B-spline degree (must satisfy 1 <= degree <= n_control_points - 1)
§Returns
A BSplinePath containing the sampled path, heading, and curvature,
or None if the inputs are invalid.