Package chunmap.model.elem

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


  @Test
  public void testDistance() {
    // y=x+1;
    Line l = new Line(1, 1);
    CPoint p = new Coordinate2D(0, 0);
    double d = l.distance(p);
    assertTrue(MyDouble.approximateEquals(Math.sqrt(2) / 2d, d));
  }

}
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.