Examples of intersects()


Examples of com.lightcrafts.mediax.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 com.mojang.ld22.entity.Entity.intersects()

      for (int x = xt0; x <= xt1; x++) {
        if (x < 0 || y < 0 || x >= w || y >= h) continue;
        List<Entity> entities = entitiesInTiles[x + y * this.w];
        for (int i = 0; i < entities.size(); i++) {
          Entity e = entities.get(i);
          if (e.intersects(x0, y0, x1, y1)) result.add(e);
        }
      }
    }
    return result;
  }
View Full Code Here

Examples of com.mojang.minecraft.Entity.intersects()

               if(var11 >= 0 && var12 >= 0 && var13 >= 0 && var11 < this.width && var12 < this.depth && var13 < this.height) {
                  List var14 = this.entityGrid[(var13 * this.depth + var12) * this.width + var11];

                  for(int var15 = 0; var15 < var14.size(); ++var15) {
                     Entity var16;
                     if((var16 = (Entity)var14.get(var15)) != var1 && var16.intersects(var2, var3, var4, var5, var6, var7)) {
                        var8.add(var16);
                     }
                  }
               }
            }
View Full Code Here

Examples of com.positive.charts.data.Range.intersects()

      final IntervalMarker im = (IntervalMarker) marker;
      final double start = im.getStartValue();
      final double end = im.getEndValue();
      final Range range = axis.getRange();
      if (!(range.intersects(start, end))) {
        return;
      }

      final int oldAlpha = gc.getAlpha();
      gc.setAlpha(marker.getAlpha());
View Full Code Here

Examples of com.sun.dtv.lwuit.geom.Rectangle.intersects()

                Component cmp2 = (Component) components.elementAt(i);
                Rectangle rect = new Rectangle(cmp2.getBounds());
                rect.setX(cmp2.getAbsoluteX());
                rect.setY(cmp2.getAbsoluteY());

                if (rect.intersects(bounds)) {
                    cmp2.paintInternal(g, false);
                }
            }
        }
    }
View Full Code Here

Examples of com.vividsolutions.jts.algorithm.RectangleLineIntersector.intersects()

      for (int j = 0; j < pts.length; j++) {
        if (i == j) continue;
       
        boolean segResult = false;
        if (useSegInt)
          segResult = rectSegIntersector.intersects(pts[i], pts[j]);
        boolean sideResult = false;
        if (useSideInt)
          sideResult = rectSideIntersector.intersects(pts[i], pts[j]);
       
        if (useSegInt && useSideInt)
View Full Code Here

Examples of com.vividsolutions.jts.geom.Envelope.intersects()

  public List query(Envelope searchEnv)
  {
    List result = new ArrayList();
    for (Iterator i = envList.iterator(); i.hasNext(); ) {
      Envelope env = (Envelope) i.next();
      if (env.intersects(searchEnv))
        result.add(env);
    }
    return result;
  }
View Full Code Here

Examples of com.vividsolutions.jts.geom.Geometry.intersects()

       
        LineString originalSplitLine = splitLineBuilder.getOriginalSplitLine();
        // Get the boundary
        Geometry boundary = geometryToSplit.getBoundary();
        // check if the line is contained inside the geometry to be split.
        if (geometryToSplit.contains(originalSplitLine) && !boundary.intersects(originalSplitLine)) {

            // here we could have the sample of closed lines.
            return SplitUtil.isClosedLine(originalSplitLine);
        }
View Full Code Here

Examples of com.vividsolutions.jts.geom.LineString.intersects()

      segmentCoordinates[0] = boundaryCoordinates[i];
      segmentCoordinates[1] = boundaryCoordinates[i + 1];
      LineString segment = fc.createLineString(segmentCoordinates);
      // if intersect, this is the vertex we need to add, so add it to the
      // result coordinates list.
      if (segment.intersects(line)) {

        Geometry point = segment.intersection(line);

        Geometry[] sorted = sortPoints(point, segment);
        // add all the points.
View Full Code Here

Examples of com.vividsolutions.jts.geom.LinearRing.intersects()

      // get an interior ring.
      LinearRing interiorRing = (LinearRing) polygon.getInteriorRingN(j);

      // add the rings that intersects with the segment.
      if (interiorRing.intersects(segment)) {
    rings.add(interiorRing);
      }
  }

  return rings;
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.