//! Parametric curves.
modbezier;usecrate::Vec2;pubusebezier::CubicBezier;/// Trait describing a parametric curve.
pubtraitCurve{/// The maximum parameter value in the curve function's domain.
constMAX_T:f64;/// Samples the curve function, returning a 2D point on the curve at the parameter `t`.
fnpoint(&self, t:f64)->Vec2<f64>;/// Samples the curve's derivative at a given parameter.
fnderivative(&self, t:f64)->Vec2<f64>;/// Samples the curve's second derivative at a given parameter.
fnsecond_derivative(&self, t:f64)->Vec2<f64>;}