Examples of crossPoint()


Examples of chunmap.model.elem.Line.crossPoint()

    // y=x-1;
    Line l2 = new Line(1, -1);
    CPoint p = new Coordinate2D(-2d / 3d, (-2d / 3d) - 1);
    assertTrue(p.equals(l1.crossPoint(l2)));
    assertTrue(p.equals(l2.crossPoint(l1)));
  }

  @Test
  public void testCriticalCrossCoordinate2D() {
    // y=4x+1;
View Full Code Here

Examples of chunmap.model.elem.Line.crossPoint()

    // y=x-1;
    Line l2 = new Line(1, -1);
    CPoint p = new Coordinate2D(1, 0);
    assertTrue(p.equals(l1.crossPoint(l2)));
    assertTrue(p.equals(l2.crossPoint(l1)));
  }

  @Test
  public void testDistance() {
    // y=x+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.