Examples of intersection()


Examples of ae.java.awt.Rectangle.intersection()

            int w = (int)(x1 - x0 + 2*padX);
            int y = (int)y0 - padY;
            int h = (int)(y1 - y0 + 2*padY);

            Rectangle clipRect = new Rectangle(x,y,w,h);
            result = clipRect.intersection(imageRect);
        } catch (NoninvertibleTransformException nte) {
            // Worst case bounds are the bounds of the image.
            result = imageRect;
        }

View Full Code Here

Examples of ch.agent.t2.time.Range.intersection()

 
  @Override
  public Range getRange() throws T2Exception, T2DBException {
    Range result = super.getRange();
    if (range != null)
      result = result.intersection(range);
    else {
      if (updates != null) {
        result = result.union(updates.getRange());
      }
      if (deletes != null) {
View Full Code Here

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

                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.clarkparsia.pellet.datatypes.OWLRealInterval.intersection()

    for( LineType t : LineType.values() ) {
      final OWLRealInterval a = interval( null, 0, false, true, t );
      final OWLRealInterval b = interval( 1, null, true, false, t );

      assertNull( a.intersection( b ) );
      assertNull( b.intersection( a ) );

      assertEquals( IntervalRelations.PRECEDES, a.compare( b ) );
      assertEquals( IntervalRelations.PRECEDED_BY, b.compare( a ) );
    }
  }
View Full Code Here

Examples of com.clarkparsia.pellet.datatypes.types.real.ContinuousRealInterval.intersection()

  public void intersectionEmpty() {
    final ContinuousRealInterval a = interval( null, 0d, false, true );
    final ContinuousRealInterval b = interval( 1d, null, true, false );

    assertNull( a.intersection( b ) );
    assertNull( b.intersection( a ) );

    assertEquals( IntervalRelations.PRECEDES, a.compare( b ) );
    assertEquals( IntervalRelations.PRECEDED_BY, b.compare( a ) );
  }
View Full Code Here

Examples of com.clarkparsia.pellet.datatypes.types.real.IntegerInterval.intersection()

  public void intersectionEmpty() {
    final IntegerInterval a = interval( null, 0 );
    final IntegerInterval b = interval( 1, null );

    assertNull( a.intersection( b ) );
    assertNull( b.intersection( a ) );
  }

  /**
   * Verify that intervals overlapping just on an inclusive bound intersect to
   * a point.
View Full Code Here

Examples of com.google.code.appengine.awt.Rectangle.intersection()

                transformedBlit(srcCM, srcR, 0, 0, dstCM, dstR, dstX, dstY, w, h,
                        sysxform, comp, bgcolor, clip);
               
                Rectangle dirtyReg = JavaBlitter.getBounds2D(sysxform, new Rectangle(dstX, dstY, w, h)).getBounds();
                Rectangle bounds = new Rectangle(dstSurf.getWidth(), dstSurf.getHeight()).getBounds();
                dstSurf.addDirtyRegion(bounds.intersection(dirtyReg));

        }
    }

    public void blit(int srcX, int srcY, Surface srcSurf, int dstX, int dstY,
View Full Code Here

Examples of com.metamx.collections.bitmap.BitmapFactory.intersection()

        final BitmapIndex bitmapIndex = column.getBitmapIndex();
        if (bitmapIndex != null) {
          for (int i = 0; i < bitmapIndex.getCardinality(); ++i) {
            String dimVal = Strings.nullToEmpty(bitmapIndex.getValue(i));
            if (searchQuerySpec.accept(dimVal) &&
                bitmapFactory.intersection(Arrays.asList(baseFilter, bitmapIndex.getBitmap(i))).size() > 0) {
              retVal.add(new SearchHit(dimension, dimVal));
              if (retVal.size() >= limit) {
                return makeReturnResult(limit, retVal);
              }
            }
View Full Code Here

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

            return new ArrayList<Envelope>();
        }
        if (!this.tracker.getRootNode().getShape().contains(search)) {
            // query is partially outside of root mbr;  we limit our search to the inside of the root mbr
            Envelope r = CacheUtil.convert((Region) this.tracker.getRootNode().getShape());
            r = r.intersection(e);
            search = CacheUtil.convert(r);
        }

        List<NodeIdentifier>[] tiles = tracker.findMissingTiles(search);
        List<NodeIdentifier> missing_tiles = tiles[0];
View Full Code Here

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

    // limit based on authorizations
    for (Authentication authentication : authentications) {
      for (BaseAuthorization authorization : authentication.getAuthorizations()) {
        if (authorization instanceof AreaAuthorization) {
          geometry = geometry.intersection(areaGetter.get((AreaAuthorization) authorization));
        }
      }
    }
    geometry.setSRID(srid); // force srid, even when not set correctly by security service
    return geometry;
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.