Examples of Invert()


Examples of org.osm2world.core.math.VectorXZ.invert()

       
        if (inboundLines.contains(l1)) {
          d1 = d1.invert();
        }
        if (inboundLines.contains(l2)) {
          d2 = d2.invert();
        }
       
        //check whether the lines are in the first or second 180°
        //(the dot product formula will not be useful to distinguish
        //these cases - it only provides cos 0° to cos 180° - ,
View Full Code Here

Examples of org.osm2world.core.math.VectorXZ.invert()

      VectorXZ ortho = direction.rightNormal();

      // TODO: if we can switch off backface culling we'd only need one face here
      VectorXZ[][] draw = new VectorXZ[][] {
          getPoleCoordinates(node.getPos().add(direction.mult(-half)), ortho, width, half),
          getPoleCoordinates(node.getPos().add(direction.mult(-half)), ortho.invert(), width, half),
          getPoleCoordinates(node.getPos().add(direction.mult(half)), ortho.invert(), width, half),
          getPoleCoordinates(node.getPos().add(direction.mult(half)), ortho, width, half)
      };

      for (int i = 0; i < 4; i++) {
View Full Code Here

Examples of org.osm2world.core.math.VectorXZ.invert()

      // TODO: if we can switch off backface culling we'd only need one face here
      VectorXZ[][] draw = new VectorXZ[][] {
          getPoleCoordinates(node.getPos().add(direction.mult(-half)), ortho, width, half),
          getPoleCoordinates(node.getPos().add(direction.mult(-half)), ortho.invert(), width, half),
          getPoleCoordinates(node.getPos().add(direction.mult(half)), ortho.invert(), width, half),
          getPoleCoordinates(node.getPos().add(direction.mult(half)), ortho, width, half)
      };

      for (int i = 0; i < 4; i++) {
        drawHorizontalSegment(target, draw[i][0], draw[i][1], elevation, 0.1, diameter/2);
View Full Code Here

Examples of org.osm2world.core.math.VectorXZ.invert()

      lowerLeft = lowerCenter.subtract(toRight);
      lowerRight = lowerCenter.add(toRight);
     
      VectorXZ toBack = tunnelContent.segment.getDirection().mult(0.1);
      if (tunnelContent.segment.getEndNode() == node) {
        toBack = toBack.invert();
      }
     
      upperLeft = lowerLeft.add(toBack);
      upperCenter = lowerCenter.add(toBack);
      upperRight = lowerRight.add(toBack);
View Full Code Here

Examples of org.osm2world.core.math.VectorXZ.invert()

            if (startCommonNode) {
              subtractPolygons.add(subtractPoly.shift(direction));
            }
           
            if (endCommonNode) {
              subtractPolygons.add(subtractPoly.shift(direction.invert()));
            }
           
          }
         
        }
View Full Code Here

Examples of org.uberfire.security.authz.AuthorizationResult.invert()

            };

            final AuthorizationResult result = votingStrategy.vote(roleDecisionManager.decide(rolesResource, subject));

            if (invertResult) {
                cache.put(subject, runtimeResource, result.invert());
            } else {
                cache.put(subject, runtimeResource, result);
            }
            if (resource instanceof Cacheable) {
                ((Cacheable) resource).markAsCached();
View Full Code Here

Examples of processing.core.PMatrix3D.invert()

   */
  public void calculateMatrix() {
    synchronized (this) {
      PMatrix3D invMatrix = new PMatrix3D();
      invMatrix.apply(matrix);
      invMatrix.invert();

      float originalCenterX = invMatrix.multX(transformationCenter.x, transformationCenter.y);
      float originalCenterY = invMatrix.multY(transformationCenter.x, transformationCenter.y);

      matrix = new PMatrix3D();
View Full Code Here

Examples of toxi.geom.Vec3D.invert()

    }

    public void face(Vec3D a, Vec3D b, Vec3D c, int rgb) {
        Vec3D normal = b.sub(a).crossSelf(c.sub(a)).normalize();
        if (useInvertedNormals) {
            normal.invert();
        }
        face(a, b, c, normal, rgb);
    }

    public void face(Vec3D a, Vec3D b, Vec3D c, Vec3D normal, int rgb) {
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.