Line2D line1 = new Line2D.Double(0.0, 0.0, 1.0, 0.0);
harness.check(2500.0, line1.ptSegDistSq(-50.0, 0.0));
harness.check(0.0, line1.ptSegDistSq(0.0, 0.0));
harness.check(0.0, line1.ptSegDistSq(1.0, 0.0));
harness.check(49.0*49.0, line1.ptSegDistSq(50.0, 0.0));
harness.check(2501.0, line1.ptSegDistSq(-50.0, 1.0));
harness.check(1.0, line1.ptSegDistSq(0.0, 1.0));
harness.check(1.0, line1.ptSegDistSq(1.0, 1.0));
harness.check(49.0*49.0+1.0, line1.ptSegDistSq(50.0, 1.0));
harness.check(2501.0, line1.ptSegDistSq(-50.0, -1.0));
harness.check(1.0, line1.ptSegDistSq(0.0, -1.0));