List of usage examples for java.awt.geom QuadCurve2D solveQuadratic
public static int solveQuadratic(double[] eqn, double[] res)
From source file:Quadradic.java
protected int findRoots(double y, double[] roots) { double[] eqn = { p1.y - y, 2 * (p2.y - p1.y), p1.y - 2 * p2.y + p3.y }; return QuadCurve2D.solveQuadratic(eqn, roots); // return solveQuad(eqn[2], eqn[1], eqn[0], roots); }