Package chunmap.model.coord

Examples of chunmap.model.coord.Coordinate2D


  @Test
  public void testIntersection6() {
    MonotonyChain chain1 = new MonotonyChain();
    MonotonyChain chain2 = new MonotonyChain();

    CPoint p1 = new Coordinate2D(0, 0);
    CPoint p2 = new Coordinate2D(1, 2);
    CPoint p3 = new Coordinate2D(0, 0);
    CPoint p4 = new Coordinate2D(1, 2);

    chain1.add(p1);
    chain1.add(p2);
    chain2.add(p3);
    chain2.add(p4);
View Full Code Here


  @Test
  public void testIntersection7() {
    MonotonyChain chain1 = new MonotonyChain();
    MonotonyChain chain2 = new MonotonyChain();

    CPoint p1 = new Coordinate2D(0, 0);
    CPoint p2 = new Coordinate2D(1, 2);
    CPoint p3 = new Coordinate2D(0.5, 1);
    CPoint p4 = new Coordinate2D(2, 2);

    chain1.add(p1);
    chain1.add(p2);
    chain1.add(p4);
View Full Code Here

  @Test
  public void testIntersection8() {
    MonotonyChain chain1 = new MonotonyChain();
    MonotonyChain chain2 = new MonotonyChain();

    CPoint p1 = new Coordinate2D(0, 0);
    CPoint p2 = new Coordinate2D(1, 0);

    chain1.add(p1);
    chain1.add(p2);

    chain2.add(p1);
View Full Code Here

  @Test
  public void testIntersection9() {
    MonotonyChain chain1 = new MonotonyChain();
    MonotonyChain chain2 = new MonotonyChain();

    CPoint p1 = new Coordinate2D(0, 0);
    CPoint p2 = new Coordinate2D(0, -1);

    chain1.add(p1);
    chain1.add(p2);

    chain2.add(p1);
View Full Code Here

  @Test
  public void testIntersection10() {
    MonotonyChain chain1 = new MonotonyChain();
    MonotonyChain chain2 = new MonotonyChain();

    CPoint p1 = new Coordinate2D(0, 0);
    CPoint p2 = new Coordinate2D(1, 2);
    CPoint p4 = new Coordinate2D(2, 2);
    CPoint p5 = new Coordinate2D(0.5, 2.8);
    CPoint p6 = new Coordinate2D(3, 3);
    CPoint p7 = new Coordinate2D(2, 1);

    chain1.add(p1);
    chain1.add(p2);
    chain1.add(p4);
    chain1.add(p6);
View Full Code Here

  @Test
  public void testIntersection11() {
    MonotonyChain chain1 = new MonotonyChain();
    MonotonyChain chain2 = new MonotonyChain();

    CPoint p1 = new Coordinate2D(0, 0);
    CPoint p2 = new Coordinate2D(0, 2);

    chain1.add(p1);
    chain1.add(p2);

    chain2.add(p2);
View Full Code Here

  @Test
  public void testIntersection12() {
    MonotonyChain chain1 = new MonotonyChain();
    MonotonyChain chain2 = new MonotonyChain();

    CPoint p1 = new Coordinate2D(0, 0);
    CPoint p2 = new Coordinate2D(1, 0);
    CPoint p3 = new Coordinate2D(2, 0);

    chain1.add(p1);
    chain1.add(p2);

    chain2.add(p2);
View Full Code Here

public class GeoPoint extends AbstractGeometry implements Comparable<GeoPoint> {

  private final CPoint coordinate;

  public GeoPoint(double x, double y) {
    this(new Coordinate2D(x, y));
  }
View Full Code Here

  }

  @Override
  public void execute() {
    //map.getView().pan(x, y);
    map.getView().setCenter(new Coordinate2D(x,y));
  }
View Full Code Here

  }

  @Override
  public void rollback() {
    //map.getView().pan(-x, -y);
    map.getView().setCenter(new Coordinate2D(ox,oy));
  }
View Full Code Here

TOP

Related Classes of chunmap.model.coord.Coordinate2D

Copyright © 2018 www.massapicom. 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.