[−][src]Function kurbo::common::solve_cubic
pub fn solve_cubic(c0: f64, c1: f64, c2: f64, c3: f64) -> ArrayVec<[f64; 3]>
Find real roots of cubic equation.
Assumes c3 is nonzero.
See: http://mathworld.wolfram.com/CubicFormula.html
Returns values of x for which c0 + c1 x + c2 x² + c3 x³ = 0.