Examples of intersect()


Examples of ae.java.awt.geom.Area.intersect()

            a2 = (Area) s2;
        } else {
            a2 = new Area(s2);
        }

        a1.intersect(a2);
        if (a1.isRectangular()) {
            return a1.getBounds();
        }

        return a1;
View Full Code Here

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

   */
  public void intersect(int index, Ray3 ray, IntersectionRecorder recorder) {
    int childIndex = getChildIndex(index);
    int offset = offsets.get(childIndex);
    SceneElement child = children.get(childIndex);
    child.intersect(index - offset, ray, recorder);
  }

  /** The child geometries. */
  private final List<SceneElement> children = new ArrayList<SceneElement>();

View Full Code Here

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

      }

      cellI = new Interval(cellI.maximum(), cellI.maximum() + t);

      if (cellI.maximum() > I.maximum()) {
        cellI = cellI.intersect(I);
        visitor.visit(ray, cellI, cell);
        break;
      }

View Full Code Here

Examples of ca.eandb.jmist.math.Plane3.intersect()

      q = new Point3(halfTableDiag * cost3, halfTableDiag * sint3, 0.0);
      r = new Point3(starPointRadius * cost2, starPointRadius * sint2, 0.0);

      Ray3 ray = new Ray3(r, Vector3.K);
      r = ray.pointAt(planeKite.intersect(ray));

      Plane3 planeStar = Plane3.throughPoints(q, p, r);
      b.slice(planeStar, true);

      p = new Point3(radius * cost2, radius * sint2, -crownHeight);
View Full Code Here

Examples of com.ardor3d.bounding.CollisionTree.intersect()

        // What about Lines and Points?
        final CollisionTree ct = CollisionTreeManager.getInstance().getCollisionTree(this);
        if (ct != null) {
            ct.getBounds().transform(getWorldTransform(), ct.getWorldBounds());
            ct.intersect(ray, primitives);
        }

        if (primitives.isEmpty()) {
            return null;
        }
View Full Code Here

Examples of com.ardor3d.math.Rectangle2.intersect()

                }
                if (first) {
                    init.set(r);
                    first = false;
                } else {
                    init.intersect(r, init);
                }
                if (init.getWidth() <= 0 || init.getHeight() <= 0) {
                    init.setWidth(0);
                    init.setHeight(0);
                    break;
View Full Code Here

Examples of com.clarkparsia.pellet.datatypes.types.datetime.RestrictedTimelineDatatype.intersect()

        DatatypeConstants.DATETIME, false );

    assertTrue( dr.contains( dateTime( "2009-01-01T12:00:00Z" ) ) );
    assertTrue( dr.contains( dateTime( "2006-06-01T06:14:23" ) ) );

    dr = dr.intersect( new RestrictedTimelineDatatype( dt, DatatypeConstants.DATETIME, true ),
        true );

    assertFalse( dr.contains( dateTime( "2009-01-01T12:00:00Z" ) ) );
    assertTrue( dr.contains( dateTime( "2006-06-01T06:14:23" ) ) );
  }
View Full Code Here

Examples of com.clarkparsia.pellet.datatypes.types.real.RestrictedRealDatatype.intersect()

  @Test
  public void maxExclusiveFacetNoI1() throws InvalidConstrainingFacetException {
    RestrictedDatatype<Number> dr = new RestrictedRealDatatype( dt, IntegerInterval
        .allIntegers(), ContinuousRealInterval.allReals(), ContinuousRealInterval
        .allReals() );
    dr = dr.intersect( new RestrictedRealDatatype( dt, IntegerInterval.allIntegers(), null,
        null ), true );
    dr = dr.applyConstrainingFacet( MAX_EXCLUSIVE.getName(), decimal( "3.5" ) );

    assertTrue( dr.contains( BigDecimal.valueOf( Long.MIN_VALUE ).subtract(
        BigDecimal.valueOf( 0.1 ) ) ) );
View Full Code Here

Examples of com.esri.core.geometry.Envelope2D.intersect()

      fillConvexPolygon(rasterizer, fan, 4);
      return;
    }*/

    Envelope2D env = new Envelope2D(0, 0, m_width, m_width);
    if (!env.intersect(envIn))
      return;

    int x0 = (int) Math.round(env.xmin);
    int x = (int) Math.round(env.xmax);

View Full Code Here

Examples of com.facebook.presto.spi.TupleDomain.intersect()

            if (node.getGeneratedPartitions().isPresent()) {
                // Add back in the TupleDomain that was used to generate the previous set of Partitions if present
                // And just for kicks, throw in the domain summary too (as that can only help prune down the ranges)
                // The domains should never widen between each pass.
                tupleDomain = tupleDomain.intersect(node.getGeneratedPartitions().get().getTupleDomainInput()).intersect(node.getPartitionsDomainSummary());
            }

            Stopwatch partitionTimer = Stopwatch.createStarted();
            PartitionResult matchingPartitions = splitManager.getPartitions(node.getTable(), Optional.of(tupleDomain));
            List<Partition> partitions = matchingPartitions.getPartitions();
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.