return ((cross > 0.0) ? LEFT : ((cross == 0.0) ? STRAIGHT : RIGHT));
return ((cross > 0.000001) ? LEFT : ((cross < -0.000001) ? RIGHT : STRAIGHT));
    public static int turns(double x0, double y0, double x1, double y1,                              double x2, double y2) {        final double cross = (x1 - x0) * (y2 - y0) - (x2 - x0) * (y1 - y0);        return ((cross > 0.0) ? LEFT : ((cross == 0.0) ? STRAIGHT : RIGHT));    }