}
private void test_CubicCurve2D(TestHarness harness)
{
CubicCurve2D curve;
Point2D[] pts = new Point2D[20];
harness.checkPoint("CubicCurve2D");
curve = new CubicCurve2D.Float();
curve.setCurve(new CubicCurve2D.Double(9, 8, 7, 6, 5, 4, 3, 2));
harness.check(curve.getX1(), 9); // Check 1
harness.check(curve.getY1(), 8); // Check 2
harness.check(curve.getCtrlX1(), 7); // Check 3
harness.check(curve.getCtrlY1(), 6); // Check 4
harness.check(curve.getCtrlX2(), 5); // Check 5
harness.check(curve.getCtrlY2(), 4); // Check 6
harness.check(curve.getX2(), 3); // Check 7
harness.check(curve.getY2(), 2); // Check 8
curve = new CubicCurve2D.Double();
curve.setCurve(new CubicCurve2D.Float(90, 80, 70, 60, 50, 40, 30, 20));
harness.check(curve.getX1(), 90); // Check 9
harness.check(curve.getY1(), 80); // Check 10
harness.check(curve.getCtrlX1(), 70); // Check 11
harness.check(curve.getCtrlY1(), 60); // Check 12
harness.check(curve.getCtrlX2(), 50); // Check 13
harness.check(curve.getCtrlY2(), 40); // Check 14
harness.check(curve.getX2(), 30); // Check 15
harness.check(curve.getY2(), 20); // Check 16
}