Package org.onebusaway.geospatial.model

Examples of org.onebusaway.geospatial.model.CoordinateBounds.intersects()


  }

  @Test
  public void testIntersects() {
    CoordinateBounds bounds = new CoordinateBounds(1,2,3,4);
    assertTrue(bounds.intersects(new CoordinateBounds(1,2,3,4)));
    assertTrue(bounds.intersects(new CoordinateBounds(0,0,2,3)));
    assertTrue(bounds.intersects(new CoordinateBounds(0,0,1,2)));
    assertFalse(bounds.intersects(new CoordinateBounds(0,0,1,1)));
  }
}
View Full Code Here


  @Test
  public void testIntersects() {
    CoordinateBounds bounds = new CoordinateBounds(1,2,3,4);
    assertTrue(bounds.intersects(new CoordinateBounds(1,2,3,4)));
    assertTrue(bounds.intersects(new CoordinateBounds(0,0,2,3)));
    assertTrue(bounds.intersects(new CoordinateBounds(0,0,1,2)));
    assertFalse(bounds.intersects(new CoordinateBounds(0,0,1,1)));
  }
}
View Full Code Here

  @Test
  public void testIntersects() {
    CoordinateBounds bounds = new CoordinateBounds(1,2,3,4);
    assertTrue(bounds.intersects(new CoordinateBounds(1,2,3,4)));
    assertTrue(bounds.intersects(new CoordinateBounds(0,0,2,3)));
    assertTrue(bounds.intersects(new CoordinateBounds(0,0,1,2)));
    assertFalse(bounds.intersects(new CoordinateBounds(0,0,1,1)));
  }
}
View Full Code Here

  public void testIntersects() {
    CoordinateBounds bounds = new CoordinateBounds(1,2,3,4);
    assertTrue(bounds.intersects(new CoordinateBounds(1,2,3,4)));
    assertTrue(bounds.intersects(new CoordinateBounds(0,0,2,3)));
    assertTrue(bounds.intersects(new CoordinateBounds(0,0,1,2)));
    assertFalse(bounds.intersects(new CoordinateBounds(0,0,1,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.