Examples of intersects()


Examples of javax.media.jai.ROIShape.intersects()

                // Fill the background.
                int maxTileY = ti.getMaxTileY();
                int maxTileX = ti.getMaxTileX();
                for(int j = ti.getMinTileY(); j <= maxTileY; j++) {
                    for(int i = ti.getMinTileX(); i <= maxTileX; i++) {
                        if(!roi.intersects(ti.getTileRect(i, j))) {
                            ti.setData(constImage.getTile(i, j),
                                       complementROI);
                        }
                    }
                }
View Full Code Here

Examples of models.creatures.Creature.intersects()

                // devant en premier (les derniers affiches)
          for(int i = creatures.size()-1; i >= 0 ;i--)
          {
              creature = creatures.get(i);
   
              if (creature.intersects(positionSurTerrain.x,positionSurTerrain.y,1,1)) // la souris est dedans ?
           
                  // on enleve le suivi de la creature
                  centrerSurCreatureSelectionnee = false;
                 
                  // si le joueur clique sur une creature deja selectionnee
View Full Code Here

Examples of net.edzard.kinetic.Circle.intersects()

    Circle c = Kinetic.createCircle(origin, radius);
    layer.add(c);
    stage.draw()// TODO: This has an issue
   
    // Check for a point in the circle
    assertTrue("Point should intersect shape", c.intersects(origin))// TODO: As well as this
   
    // Check for a point outside of the circle
    assertFalse("Point should not intersect shape", c.intersects(outlier));
 
}
View Full Code Here

Examples of net.sf.clairv.search.rank.ScoreDocList.intersects()

    if (kqm.getCurrentBloomFilter() != null) {
      SimpleBloomFilter receivedBloomFilter = kqm
          .getCurrentBloomFilter();
      // calculate F(a) intersects B
      sdList.intersects(receivedBloomFilter);
    }

    final SimpleBloomFilter currentBloomFilter = (new BloomFilterCreator())
        .createBloomFilter(sdList);
    try {
View Full Code Here

Examples of net.sf.jsi.Rectangle.intersects()

    assertTrue(r2_2_6_6.intersects(r1_3_5_5));
    assertTrue(r1_3_5_5.intersects(r2_2_6_6));
   
    // Rectangles that intersect only on the bottom side
    assertTrue(r2_2_6_6.intersects(r3_1_5_5));
    assertTrue(r3_1_5_5.intersects(r2_2_6_6));
   
  }
}
View Full Code Here

Examples of net.sf.jsi.rtree.RTree.intersects()

      // check that we can make queries on an empty rtree without error.
      Rectangle testRect = new Rectangle(1,2,3,4);
      Point testPoint = new Point(1,2);
     
      Counter counter = new Counter();
      rtree.intersects(testRect, counter);
      assertTrue(counter.count == 0);
     
      rtree.nearest(testPoint, counter, Float.MAX_VALUE);
      assertTrue(counter.count == 0);
     
View Full Code Here

Examples of net.sf.picard.util.Interval.intersects()

            }*/

            if (featureIntervalMap.containsKey(featureName)) {
                Collection<Interval> intervals = featureIntervalMap.get(featureName);
                for (Interval interval: intervals ) {
                    if (newInterval.intersects(interval) || newInterval.abuts(interval)) {
                        if (newInterval.getStart() == interval.getStart() && newInterval.getEnd() == interval.getEnd()) {
                            // equal interval is already present for this feature
                            return;
                        }
                        newInterval = concatenateIntervals(newInterval, interval);
View Full Code Here

Examples of objects.Platform.intersects()

  public void mousePressed(MouseEvent e) {
    if (e.getButton() == MouseEvent.BUTTON3) {
      for (int i=0; i<platforms_lc.size(); i++) {
        final Platform pl = platforms_lc.get(i);
        if (pl.intersects(e.getX(), e.getY(), 1, 1)) {
          platforms_lc.remove(pl);
          i--;
        }
      }
      return
View Full Code Here

Examples of org.apache.cassandra.dht.Range.intersects()

        Range promotedRange = new Range(sstable.first.token, sstable.last.token);
        for (SSTableReader candidate : candidates)
        {
            Range candidateRange = new Range(candidate.first.token, candidate.last.token);
            if (candidateRange.intersects(promotedRange))
                overlapped.add(candidate);
        }
        return overlapped;
    }
View Full Code Here

Examples of org.apache.harmony.awt.gl.MultiRectArea.intersects()

    private boolean isObscured(final int x, final int y, final int width, final int height) {
        MultiRectArea obscuredArea = ComponentInternals.getComponentInternals().getObscuredRegion(parent);
        if (obscuredArea == null || obscuredArea.isEmpty()) {
            return false;
        }
        return obscuredArea.intersects(x, y, width, height);
    }

    private void resetBlitting() {
        wasPainted = false;
        lastPaintPosition = null;
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.