Examples of ptSegDist()


Examples of java.awt.geom.Line2D.ptSegDist()

  implements Testlet
{
  public void test(TestHarness harness)
  {
    Line2D line1 = new Line2D.Double(0.0, 0.0, 1.0, 0.0);
    harness.check(50.0, line1.ptSegDist(-50.0, 0.0));
    harness.check(0.0, line1.ptSegDist(0.0, 0.0));
    harness.check(0.0, line1.ptSegDist(1.0, 0.0));
    harness.check(49.0, line1.ptSegDist(50.0, 0.0));
    harness.check(Math.sqrt(2501.0), line1.ptSegDist(-50.0, 1.0));
    harness.check(1.0, line1.ptSegDist(0.0, 1.0));
View Full Code Here

Examples of java.awt.geom.Line2D.ptSegDist()

{
  public void test(TestHarness harness)
  {
    Line2D line1 = new Line2D.Double(0.0, 0.0, 1.0, 0.0);
    harness.check(50.0, line1.ptSegDist(-50.0, 0.0));
    harness.check(0.0, line1.ptSegDist(0.0, 0.0));
    harness.check(0.0, line1.ptSegDist(1.0, 0.0));
    harness.check(49.0, line1.ptSegDist(50.0, 0.0));
    harness.check(Math.sqrt(2501.0), line1.ptSegDist(-50.0, 1.0));
    harness.check(1.0, line1.ptSegDist(0.0, 1.0));
    harness.check(1.0, line1.ptSegDist(1.0, 1.0));
View Full Code Here

Examples of java.awt.geom.Line2D.ptSegDist()

  public void test(TestHarness harness)
  {
    Line2D line1 = new Line2D.Double(0.0, 0.0, 1.0, 0.0);
    harness.check(50.0, line1.ptSegDist(-50.0, 0.0));
    harness.check(0.0, line1.ptSegDist(0.0, 0.0));
    harness.check(0.0, line1.ptSegDist(1.0, 0.0));
    harness.check(49.0, line1.ptSegDist(50.0, 0.0));
    harness.check(Math.sqrt(2501.0), line1.ptSegDist(-50.0, 1.0));
    harness.check(1.0, line1.ptSegDist(0.0, 1.0));
    harness.check(1.0, line1.ptSegDist(1.0, 1.0));
    harness.check(Math.sqrt(49.0*49.0+1.0), line1.ptSegDist(50.0, 1.0));
View Full Code Here

Examples of java.awt.geom.Line2D.ptSegDist()

  {
    Line2D line1 = new Line2D.Double(0.0, 0.0, 1.0, 0.0);
    harness.check(50.0, line1.ptSegDist(-50.0, 0.0));
    harness.check(0.0, line1.ptSegDist(0.0, 0.0));
    harness.check(0.0, line1.ptSegDist(1.0, 0.0));
    harness.check(49.0, line1.ptSegDist(50.0, 0.0));
    harness.check(Math.sqrt(2501.0), line1.ptSegDist(-50.0, 1.0));
    harness.check(1.0, line1.ptSegDist(0.0, 1.0));
    harness.check(1.0, line1.ptSegDist(1.0, 1.0));
    harness.check(Math.sqrt(49.0*49.0+1.0), line1.ptSegDist(50.0, 1.0));
    harness.check(Math.sqrt(2501.0), line1.ptSegDist(-50.0, -1.0));
View Full Code Here

Examples of java.awt.geom.Line2D.ptSegDist()

    Line2D line1 = new Line2D.Double(0.0, 0.0, 1.0, 0.0);
    harness.check(50.0, line1.ptSegDist(-50.0, 0.0));
    harness.check(0.0, line1.ptSegDist(0.0, 0.0));
    harness.check(0.0, line1.ptSegDist(1.0, 0.0));
    harness.check(49.0, line1.ptSegDist(50.0, 0.0));
    harness.check(Math.sqrt(2501.0), line1.ptSegDist(-50.0, 1.0));
    harness.check(1.0, line1.ptSegDist(0.0, 1.0));
    harness.check(1.0, line1.ptSegDist(1.0, 1.0));
    harness.check(Math.sqrt(49.0*49.0+1.0), line1.ptSegDist(50.0, 1.0));
    harness.check(Math.sqrt(2501.0), line1.ptSegDist(-50.0, -1.0));
    harness.check(1.0, line1.ptSegDist(0.0, -1.0));
View Full Code Here

Examples of java.awt.geom.Line2D.ptSegDist()

    harness.check(50.0, line1.ptSegDist(-50.0, 0.0));
    harness.check(0.0, line1.ptSegDist(0.0, 0.0));
    harness.check(0.0, line1.ptSegDist(1.0, 0.0));
    harness.check(49.0, line1.ptSegDist(50.0, 0.0));
    harness.check(Math.sqrt(2501.0), line1.ptSegDist(-50.0, 1.0));
    harness.check(1.0, line1.ptSegDist(0.0, 1.0));
    harness.check(1.0, line1.ptSegDist(1.0, 1.0));
    harness.check(Math.sqrt(49.0*49.0+1.0), line1.ptSegDist(50.0, 1.0));
    harness.check(Math.sqrt(2501.0), line1.ptSegDist(-50.0, -1.0));
    harness.check(1.0, line1.ptSegDist(0.0, -1.0));
    harness.check(1.0, line1.ptSegDist(1.0, -1.0));
View Full Code Here

Examples of java.awt.geom.Line2D.ptSegDist()

    harness.check(0.0, line1.ptSegDist(0.0, 0.0));
    harness.check(0.0, line1.ptSegDist(1.0, 0.0));
    harness.check(49.0, line1.ptSegDist(50.0, 0.0));
    harness.check(Math.sqrt(2501.0), line1.ptSegDist(-50.0, 1.0));
    harness.check(1.0, line1.ptSegDist(0.0, 1.0));
    harness.check(1.0, line1.ptSegDist(1.0, 1.0));
    harness.check(Math.sqrt(49.0*49.0+1.0), line1.ptSegDist(50.0, 1.0));
    harness.check(Math.sqrt(2501.0), line1.ptSegDist(-50.0, -1.0));
    harness.check(1.0, line1.ptSegDist(0.0, -1.0));
    harness.check(1.0, line1.ptSegDist(1.0, -1.0));
    harness.check(Math.sqrt(49.0*49.0+1.0), line1.ptSegDist(50.0, -1.0));
View Full Code Here

Examples of java.awt.geom.Line2D.ptSegDist()

    harness.check(0.0, line1.ptSegDist(1.0, 0.0));
    harness.check(49.0, line1.ptSegDist(50.0, 0.0));
    harness.check(Math.sqrt(2501.0), line1.ptSegDist(-50.0, 1.0));
    harness.check(1.0, line1.ptSegDist(0.0, 1.0));
    harness.check(1.0, line1.ptSegDist(1.0, 1.0));
    harness.check(Math.sqrt(49.0*49.0+1.0), line1.ptSegDist(50.0, 1.0));
    harness.check(Math.sqrt(2501.0), line1.ptSegDist(-50.0, -1.0));
    harness.check(1.0, line1.ptSegDist(0.0, -1.0));
    harness.check(1.0, line1.ptSegDist(1.0, -1.0));
    harness.check(Math.sqrt(49.0*49.0+1.0), line1.ptSegDist(50.0, -1.0));

View Full Code Here

Examples of java.awt.geom.Line2D.ptSegDist()

    harness.check(49.0, line1.ptSegDist(50.0, 0.0));
    harness.check(Math.sqrt(2501.0), line1.ptSegDist(-50.0, 1.0));
    harness.check(1.0, line1.ptSegDist(0.0, 1.0));
    harness.check(1.0, line1.ptSegDist(1.0, 1.0));
    harness.check(Math.sqrt(49.0*49.0+1.0), line1.ptSegDist(50.0, 1.0));
    harness.check(Math.sqrt(2501.0), line1.ptSegDist(-50.0, -1.0));
    harness.check(1.0, line1.ptSegDist(0.0, -1.0));
    harness.check(1.0, line1.ptSegDist(1.0, -1.0));
    harness.check(Math.sqrt(49.0*49.0+1.0), line1.ptSegDist(50.0, -1.0));

    harness.check(50.0, line1.ptSegDist(new Point2D.Double(-50.0, 0.0)));
View Full Code Here

Examples of java.awt.geom.Line2D.ptSegDist()

    harness.check(Math.sqrt(2501.0), line1.ptSegDist(-50.0, 1.0));
    harness.check(1.0, line1.ptSegDist(0.0, 1.0));
    harness.check(1.0, line1.ptSegDist(1.0, 1.0));
    harness.check(Math.sqrt(49.0*49.0+1.0), line1.ptSegDist(50.0, 1.0));
    harness.check(Math.sqrt(2501.0), line1.ptSegDist(-50.0, -1.0));
    harness.check(1.0, line1.ptSegDist(0.0, -1.0));
    harness.check(1.0, line1.ptSegDist(1.0, -1.0));
    harness.check(Math.sqrt(49.0*49.0+1.0), line1.ptSegDist(50.0, -1.0));

    harness.check(50.0, line1.ptSegDist(new Point2D.Double(-50.0, 0.0)));
    harness.check(0.0, line1.ptSegDist(new Point2D.Double(0.0, 0.0)));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.