Examples of intersects()


Examples of ca.eandb.jmist.framework.SceneElement.intersects()

   */
  public boolean intersects(int index, Box3 box) {
    SceneElement child = children.get(index);
    int n = child.getNumPrimitives();
    for (int i = 0; i < n; i++) {
      if (child.intersects(i, box)) {
        return true;
      }
    }
    return false;
  }
View Full Code Here

Examples of ca.eandb.jmist.math.Interval.intersects()

        boolean hit = false;

        /* If the range of y-values intersect, then there may be an
         * intersection.
         */
        if (h.intersects(slice.range())) {

          Box3 bounds = cell.getBoundingBox();

          /* Get the points on the height field. */
          Point3 p00 = new Point3(bounds.minimumX(), slice.at(0, 0), bounds.minimumZ());
View Full Code Here

Examples of ch.hsr.geohash.BoundingBox.intersects()

  private void expandSearch(GeoHash centerHash, BoundingBox bbox) {
    addSearchHash(centerHash);

    for (GeoHash adjacent : centerHash.getAdjacent()) {
      BoundingBox adjacentBox = adjacent.getBoundingBox();
      if (adjacentBox.intersects(bbox) && !searchHashes.contains(adjacent)) {
        addSearchHash(adjacent);
      }
    }
  }
View Full Code Here

Examples of com.allen_sauer.gwt.dnd.client.util.Area.intersects()

  DropController getIntersectDropController(int x, int y) {
    Location location = new CoordinateLocation(x, y);
    for (int i = sortedCandidates.length - 1; i >= 0; i--) {
      Candidate candidate = sortedCandidates[i];
      Area targetArea = candidate.getTargetArea();
      if (targetArea.intersects(location)) {
        return candidate.getDropController();
      }
    }
    return null;
  }
View Full Code Here

Examples of com.allen_sauer.gwt.dnd.client.util.WidgetArea.intersects()

            p = Position.SOUTH;
        } else if ( eastWidgetArea.intersects( l ) ) {
            p = Position.EAST;
        } else if ( westWidgetArea.intersects( l ) ) {
            p = Position.WEST;
        } else if ( centreWidgetArea.intersects( l ) ) {
            p = Position.SELF;
        }
        if ( p != dropTargetPosition ) {
            dropTargetPosition = p;
            showDropTarget( context,
View Full Code Here

Examples of com.ardor3d.extension.terrain.util.Region.intersects()

                for (int i = regionList.size() - 1; i >= 0; i--) {
                    final Region region = regionList.get(i);
                    final Region clipRegion = levelDataList.get(region.getLevel()).clipRegion;

                    if (clipRegion.intersects(region)) {
                        clipRegion.intersection(region);
                    } else {
                        regionList.remove(i);
                    }
                }
View Full Code Here

Examples of com.github.davidmoten.rtree.geometry.Rectangle.intersects()

    @Test
    public void testIntersects() {
        Rectangle a = rectangle(14, 14, 86, 37);
        Rectangle b = rectangle(13, 23, 50, 80);
        assertTrue(a.intersects(b));
        assertTrue(b.intersects(a));
    }

    @Test
    public void testIntersectsNoRectangleContainsCornerOfAnother() {
        Rectangle a = rectangle(10, 10, 50, 50);
View Full Code Here

Examples of com.google.code.appengine.awt.geom.Area.intersects()

        Area area = new Area(s);
        if (getClip() != null) {
            area.intersect(new Area(getClip()));
        }

        return area.intersects(rect);
    }
}
View Full Code Here

Examples of com.google.code.appengine.awt.geom.Line2D.intersects()

  public boolean intersects(Rectangle2D r) {
    if(np==0)return false;
    Line2D line = new Line2D.Double(x[0],y[0],x[0],y[0]);
    for (int i = 1; i < np; i++) {
      line.setLine(x[i-1], y[i-1], x[i], y[i]);
      if(line.intersects(r))return true;
    }
    return false;
  }

  /**
 
View Full Code Here

Examples of com.lightcrafts.jai.LCROIShape.intersects()

        Raster roi = null;
        if (hasMask()) {
            LCROIShape lcROI = (LCROIShape) mask;

            if (lcROI.intersects(destRect))
                roi = lcROI.getData(destRect);
            else {
                if (opacity > 0) {
                    assert dest.getBounds().equals(sources[1].getBounds());
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.