Skip to main content

cubic_bezier_solve

Function cubic_bezier_solve 

Source
pub(crate) fn cubic_bezier_solve(
    x1: f32,
    y1: f32,
    x2: f32,
    y2: f32,
    x: f32,
) -> f32
Expand description

3次ベジェ y(x=t) を解く。x からニュートン法で媒介変数 u を求め y(u) を返す。