Examples of intersects()


Examples of org.openstreetmap.josm.data.osm.WaySegment.intersects()

                for (WaySegment es2 : segments) {
                    List<Way> prims;
                    List<WaySegment> highlight;

                    if (errorSegments.contains(es1) && errorSegments.contains(es2)
                            || !es1.intersects(es2)
                            || ignoreWaySegmentCombination(es1.way, es2.way)) {
                        continue;
                    }

                    prims = Arrays.asList(es1.way, es2.way);
View Full Code Here

Examples of org.osm2world.core.math.PolygonWithHolesXZ.intersects()

    {
      final PolygonWithHolesXZ polygon = area.getPolygon();
     
      if (!line.isConnectedTo(area)) {
 
        intersects = polygon.intersects(segmentXZ);
        contains = !intersects && polygon.contains(segmentXZ);
       
      } else {
     
        /* check whether the line intersects the area somewhere
View Full Code Here

Examples of org.tinyuml.draw.UmlNode.intersects()

      // last
      // check if we could end at the segment before the last one
      line.setLine(points.get(points.size() - 3),
                   points.get(points.size() - 2));
      if (target.intersects(line)) {
        linepoints.remove(linepoints.size() - 1);
      } else {
        line.setLine(points.get(points.size() - 2),
                     points.get(points.size() - 1));
      }
View Full Code Here

Examples of org.tinyuml.umldraw.shared.UmlNode.intersects()

      // last
      // check if we could end at the segment before the last one
      line.setLine(points.get(points.size() - 3),
                   points.get(points.size() - 2));
      if (target.intersects(line)) {
        linepoints.remove(linepoints.size() - 1);
      } else {
        line.setLine(points.get(points.size() - 2),
                     points.get(points.size() - 1));
      }
View Full Code Here

Examples of org.xhtmlrenderer.render.Box.intersects()

        List content = iB.getElementWithContent();
       
        for (int i = 0; i < content.size(); i++) {
            Box b = (Box)content.get(i);
           
            if (b.intersects(c, clip)) {
                if (b instanceof InlineLayoutBox) {
                    inlineContent.add(b);
                } else {
                    BlockBox bb = (BlockBox)b;
                    if (bb.isInline()) {
View Full Code Here

Examples of pivot.wtk.Bounds.intersects()

            for (NodeView nodeView : nodeViews) {
                Bounds nodeViewBounds = nodeView.getBounds(false);

                // Only paint node views that intersect the current clip rectangle
                if (nodeViewBounds.intersects(paintBounds)) {
                    // Create a copy of the current graphics context and
                    // translate to the node view's coordinate system
                    Graphics2D nodeViewGraphics = (Graphics2D)graphics.create();
                    nodeViewGraphics.translate(nodeViewBounds.x, nodeViewBounds.y);
View Full Code Here

Examples of polyglot.ast.Assert.intersects()

    Flags a = (Flags)((java_cup.runtime.Symbol) CUP$Grm$stack.elementAt(CUP$Grm$top-1)).value;
    int bleft = ((java_cup.runtime.Symbol)CUP$Grm$stack.elementAt(CUP$Grm$top-0)).left;
    int bright = ((java_cup.runtime.Symbol)CUP$Grm$stack.elementAt(CUP$Grm$top-0)).right;
    Flags b = (Flags)((java_cup.runtime.Symbol) CUP$Grm$stack.elementAt(CUP$Grm$top-0)).value;
   
                           if (a.intersects(b)) parser.die(parser.position());
               RESULT = a.set(b);
                          
              CUP$Grm$result = new java_cup.runtime.Symbol(28/*modifiers*/, ((java_cup.runtime.Symbol)CUP$Grm$stack.elementAt(CUP$Grm$top-1)).left, ((java_cup.runtime.Symbol)CUP$Grm$stack.elementAt(CUP$Grm$top-0)).right, RESULT);
            }
          return CUP$Grm$result;
View Full Code Here

Examples of polyglot.ext.jl.parse.Name.intersects()

    Flags a = (Flags)((java_cup.runtime.Symbol) CUP$Grm$stack.elementAt(CUP$Grm$top-1)).value;
    int bleft = ((java_cup.runtime.Symbol)CUP$Grm$stack.elementAt(CUP$Grm$top-0)).left;
    int bright = ((java_cup.runtime.Symbol)CUP$Grm$stack.elementAt(CUP$Grm$top-0)).right;
    Flags b = (Flags)((java_cup.runtime.Symbol) CUP$Grm$stack.elementAt(CUP$Grm$top-0)).value;
   
                           if (a.intersects(b)) parser.die(parser.position());
               RESULT = a.set(b);
                          
              CUP$Grm$result = new java_cup.runtime.Symbol(28/*modifiers*/, ((java_cup.runtime.Symbol)CUP$Grm$stack.elementAt(CUP$Grm$top-1)).left, ((java_cup.runtime.Symbol)CUP$Grm$stack.elementAt(CUP$Grm$top-0)).right, RESULT);
            }
          return CUP$Grm$result;
View Full Code Here

Examples of project.gluebooster.graphics.PolyLine.intersects()

      for (PolyLine line : polyLines)
      {
         for (RectangleWithRef<Vertex,?> vertex : nodeMapping.values())
         {
            int equalityDistance = 5;
            if (line.intersects(vertex)
                  && !(line.startsWith(vertex.getCenter(), equalityDistance) || (line
                        .endsWith(vertex.getCenter(), equalityDistance))))
            {
               // determine which diagonale part is intersected and add another
               // point to the polyline
View Full Code Here

Examples of project.gluebooster.graphics.RectangleWithRef.intersects()

            {
               RectangleWithRef rectangle2 = shapes.get(j);
               if (rectangle2.x > rectangle.getRightX())
               {
                  break;
               } else if (rectangle2.intersects(rectangle))
               {
                  // move all followin components to the right
                  for (int k = j; k < size; k++)
                  {
                     shapes.get(k).translateRight(rectangle.width);
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.