double C = x0;
    double curveArea()    {      double x0 = P1.getX();      double y0 = P1.getY();      double x1 = cp.getX();      double y1 = cp.getY();      double x2 = P2.getX();      double y2 = P2.getY();      double P = (y2 - 2 * y1 + y0);      double Q = 2 * (y1 - y0);      double R = y0;      double A = (x2 - 2 * x1 + x0);      double B = 2 * (x1 - x0);      double C = x0;      double area = (B * P - A * Q) / 3.0;      return (area);    }