pub trait Curved: Path {
type Curvature;
// Required method
fn curvature_at(
&self,
s: Self::Scalar,
) -> Result<Self::Curvature, Self::Error>;
}Expand description
Query the curvature at any point along a path.
In 2D the curvature is a signed scalar (positive for left turns, negative
for right turns). In 3D it is a curvature vector (κ · N).