[][src]Function flo_curves::bezier::offset

pub fn offset<Curve: BezierCurveFactory + NormalCurve>(
    curve: &Curve,
    initial_offset: f64,
    final_offset: f64
) -> Vec<Curve> where
    Curve::Point: Normalize + Coordinate2D

Computes a series of curves that approximate an offset curve from the specified origin curve.

Based on the algorithm described in https://pomax.github.io/bezierinfo/#offsetting