Package java.awt.geom

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


   
    harness.check(Line2D.relativeCCW(1.0, 1.0, 1.0, 1.0, 1.0, 1.0) == 0);
    harness.check(Line2D.relativeCCW(1.0, 1.0, 1.0, 1.0, 2.0, 2.0) == 0);
     
    Line2D line1 = new Line2D.Double(1.0, 1.0, 3.0, 2.0);
    harness.check(line1.relativeCCW(1.0, 1.0) == 0);
    harness.check(line1.relativeCCW(3.0, 2.0) == 0);
    harness.check(line1.relativeCCW(0.0, 0.0) == 1);
    harness.check(line1.relativeCCW(-1.0, 0.0) == -1);
    harness.check(line1.relativeCCW(5.0, 3.0) == 1);
    harness.check(line1.relativeCCW(5.0, 4.0) == -1);
View Full Code Here


    harness.check(Line2D.relativeCCW(1.0, 1.0, 1.0, 1.0, 1.0, 1.0) == 0);
    harness.check(Line2D.relativeCCW(1.0, 1.0, 1.0, 1.0, 2.0, 2.0) == 0);
     
    Line2D line1 = new Line2D.Double(1.0, 1.0, 3.0, 2.0);
    harness.check(line1.relativeCCW(1.0, 1.0) == 0);
    harness.check(line1.relativeCCW(3.0, 2.0) == 0);
    harness.check(line1.relativeCCW(0.0, 0.0) == 1);
    harness.check(line1.relativeCCW(-1.0, 0.0) == -1);
    harness.check(line1.relativeCCW(5.0, 3.0) == 1);
    harness.check(line1.relativeCCW(5.0, 4.0) == -1);
    harness.check(line1.relativeCCW(-1.0, -1.0) == 1);
View Full Code Here

    harness.check(Line2D.relativeCCW(1.0, 1.0, 1.0, 1.0, 2.0, 2.0) == 0);
     
    Line2D line1 = new Line2D.Double(1.0, 1.0, 3.0, 2.0);
    harness.check(line1.relativeCCW(1.0, 1.0) == 0);
    harness.check(line1.relativeCCW(3.0, 2.0) == 0);
    harness.check(line1.relativeCCW(0.0, 0.0) == 1);
    harness.check(line1.relativeCCW(-1.0, 0.0) == -1);
    harness.check(line1.relativeCCW(5.0, 3.0) == 1);
    harness.check(line1.relativeCCW(5.0, 4.0) == -1);
    harness.check(line1.relativeCCW(-1.0, -1.0) == 1);
View Full Code Here

     
    Line2D line1 = new Line2D.Double(1.0, 1.0, 3.0, 2.0);
    harness.check(line1.relativeCCW(1.0, 1.0) == 0);
    harness.check(line1.relativeCCW(3.0, 2.0) == 0);
    harness.check(line1.relativeCCW(0.0, 0.0) == 1);
    harness.check(line1.relativeCCW(-1.0, 0.0) == -1);
    harness.check(line1.relativeCCW(5.0, 3.0) == 1);
    harness.check(line1.relativeCCW(5.0, 4.0) == -1);
    harness.check(line1.relativeCCW(-1.0, -1.0) == 1);

    harness.check(line1.relativeCCW(new Point2D.Double(1.0, 1.0)) == 0);
View Full Code Here

    Line2D line1 = new Line2D.Double(1.0, 1.0, 3.0, 2.0);
    harness.check(line1.relativeCCW(1.0, 1.0) == 0);
    harness.check(line1.relativeCCW(3.0, 2.0) == 0);
    harness.check(line1.relativeCCW(0.0, 0.0) == 1);
    harness.check(line1.relativeCCW(-1.0, 0.0) == -1);
    harness.check(line1.relativeCCW(5.0, 3.0) == 1);
    harness.check(line1.relativeCCW(5.0, 4.0) == -1);
    harness.check(line1.relativeCCW(-1.0, -1.0) == 1);

    harness.check(line1.relativeCCW(new Point2D.Double(1.0, 1.0)) == 0);
    harness.check(line1.relativeCCW(new Point2D.Double(3.0, 2.0)) == 0);
View Full Code Here

    harness.check(line1.relativeCCW(1.0, 1.0) == 0);
    harness.check(line1.relativeCCW(3.0, 2.0) == 0);
    harness.check(line1.relativeCCW(0.0, 0.0) == 1);
    harness.check(line1.relativeCCW(-1.0, 0.0) == -1);
    harness.check(line1.relativeCCW(5.0, 3.0) == 1);
    harness.check(line1.relativeCCW(5.0, 4.0) == -1);
    harness.check(line1.relativeCCW(-1.0, -1.0) == 1);

    harness.check(line1.relativeCCW(new Point2D.Double(1.0, 1.0)) == 0);
    harness.check(line1.relativeCCW(new Point2D.Double(3.0, 2.0)) == 0);
    harness.check(line1.relativeCCW(new Point2D.Double(0.0, 0.0)) == 1);
View Full Code Here

    harness.check(line1.relativeCCW(3.0, 2.0) == 0);
    harness.check(line1.relativeCCW(0.0, 0.0) == 1);
    harness.check(line1.relativeCCW(-1.0, 0.0) == -1);
    harness.check(line1.relativeCCW(5.0, 3.0) == 1);
    harness.check(line1.relativeCCW(5.0, 4.0) == -1);
    harness.check(line1.relativeCCW(-1.0, -1.0) == 1);

    harness.check(line1.relativeCCW(new Point2D.Double(1.0, 1.0)) == 0);
    harness.check(line1.relativeCCW(new Point2D.Double(3.0, 2.0)) == 0);
    harness.check(line1.relativeCCW(new Point2D.Double(0.0, 0.0)) == 1);
    harness.check(line1.relativeCCW(new Point2D.Double(-1.0, 0.0)) == -1);
View Full Code Here

    harness.check(line1.relativeCCW(-1.0, 0.0) == -1);
    harness.check(line1.relativeCCW(5.0, 3.0) == 1);
    harness.check(line1.relativeCCW(5.0, 4.0) == -1);
    harness.check(line1.relativeCCW(-1.0, -1.0) == 1);

    harness.check(line1.relativeCCW(new Point2D.Double(1.0, 1.0)) == 0);
    harness.check(line1.relativeCCW(new Point2D.Double(3.0, 2.0)) == 0);
    harness.check(line1.relativeCCW(new Point2D.Double(0.0, 0.0)) == 1);
    harness.check(line1.relativeCCW(new Point2D.Double(-1.0, 0.0)) == -1);
    harness.check(line1.relativeCCW(new Point2D.Double(5.0, 3.0)) == 1);
    harness.check(line1.relativeCCW(new Point2D.Double(5.0, 4.0)) == -1);
View Full Code Here

    harness.check(line1.relativeCCW(5.0, 3.0) == 1);
    harness.check(line1.relativeCCW(5.0, 4.0) == -1);
    harness.check(line1.relativeCCW(-1.0, -1.0) == 1);

    harness.check(line1.relativeCCW(new Point2D.Double(1.0, 1.0)) == 0);
    harness.check(line1.relativeCCW(new Point2D.Double(3.0, 2.0)) == 0);
    harness.check(line1.relativeCCW(new Point2D.Double(0.0, 0.0)) == 1);
    harness.check(line1.relativeCCW(new Point2D.Double(-1.0, 0.0)) == -1);
    harness.check(line1.relativeCCW(new Point2D.Double(5.0, 3.0)) == 1);
    harness.check(line1.relativeCCW(new Point2D.Double(5.0, 4.0)) == -1);
    harness.check(line1.relativeCCW(new Point2D.Double(-1.0, -1.0)) == 1);
View Full Code Here

    harness.check(line1.relativeCCW(5.0, 4.0) == -1);
    harness.check(line1.relativeCCW(-1.0, -1.0) == 1);

    harness.check(line1.relativeCCW(new Point2D.Double(1.0, 1.0)) == 0);
    harness.check(line1.relativeCCW(new Point2D.Double(3.0, 2.0)) == 0);
    harness.check(line1.relativeCCW(new Point2D.Double(0.0, 0.0)) == 1);
    harness.check(line1.relativeCCW(new Point2D.Double(-1.0, 0.0)) == -1);
    harness.check(line1.relativeCCW(new Point2D.Double(5.0, 3.0)) == 1);
    harness.check(line1.relativeCCW(new Point2D.Double(5.0, 4.0)) == -1);
    harness.check(line1.relativeCCW(new Point2D.Double(-1.0, -1.0)) == 1);
   
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.