Examples of rotate()


Examples of ae.java.awt.geom.AffineTransform.rotate()

        at.translate(x, y);
        // now gradient point 1 is at the origin
        x = pt2.getX() - x;
        y = pt2.getY() - y;
        double len = Math.sqrt(x * x + y * y);
        at.rotate(x, y);
        // now gradient point 2 is on the positive x-axis
        at.scale(len, 1);
        // now gradient point 1 is at (0.0, 0), point 2 is at (1.0, 0)

        float p0, p1, p3;
View Full Code Here

Examples of aspect.util.Matrix4x4.rotate()

            PlayerControl.centerMouse();

            Matrix4x4 m = Matrix4x4.identity();
            m = m.rotateY(x);

            m = m.rotate(internalView.right(), y);

            internalView.forward = m.transformVector(internalView.forward);

            Matrix4x4 m2 = transform.getMdlMatrix();
View Full Code Here

Examples of cli.MonoTouch.CoreGraphics.CGAffineTransform.Rotate()

        switch (orientationValue) {
        default:
        case UIDeviceOrientation.Portrait:
          break;
        case UIDeviceOrientation.PortraitUpsideDown:
          trans.Rotate(FloatMath.PI);
          break;
        case UIDeviceOrientation.LandscapeLeft:
          landscape = true;
          trans.Rotate(FloatMath.PI / 2);
          break;
View Full Code Here

Examples of cofh.repack.codechicken.lib.vec.Quat.rotate()

    verts[10] = new Vector3(-phi, 0, 1);
    verts[11] = new Vector3(-phi, 0, -1);

    Quat quat = Quat.aroundAxis(0, 0, 1, Math.atan(1 / phi));
    for (Vector3 vec : verts) {
      quat.rotate(vec);
    }

    icosahedron4 = CCModel.newModel(4, 60);
    icosahedron7 = CCModel.newModel(7, 80);
View Full Code Here

Examples of com.adobe.internal.fxg.types.FXGMatrix.rotate()

        double ty = (!Double.isNaN(gradient.getY()) ? gradient.getY() (pathBounds.yMax + pathBounds.yMin) / (2.0*SwfConstants.TWIPS_PER_PIXEL));
           
        FXGMatrix matrix = new FXGMatrix();
        matrix.scale(w/SwfConstants.GRADIENT_SQUARE, h/SwfConstants.GRADIENT_SQUARE);
        if (!Double.isNaN(gradient.getRotation()) && (gradient.getRotation() != 0))
            matrix.rotate(gradient.getRotation());
        matrix.translate(tx, ty);
       
        return matrix.toSWFMatrix();
    }

View Full Code Here

Examples of com.badlogic.gdx.math.Matrix3.rotate()

    if (originX != 0 || originY != 0)
      localTransform.setToTranslation(originX, originY);
    else
      localTransform.idt();
    if (rotation != 0) localTransform.rotate(rotation);
    if (scaleX != 1 || scaleY != 1) localTransform.scale(scaleX, scaleY);
    if (originX != 0 || originY != 0) localTransform.translate(-originX, -originY);
    localTransform.trn(x, y);

    // Find the first parent that transforms.
View Full Code Here

Examples of com.barrybecker4.puzzle.redpuzzle.model.Piece.rotate()

            Piece p = SHUFFLED_PIECES.get(i);
            if (!position.contains(p)) {
                int r = 0;
                // see if any of the rotations fit.
                while (!position.fits(p) && r < 4) {
                    p = p.rotate();
                    r++;
                }
                if (r < 4) {
                    moves.add(p);
                }
View Full Code Here

Examples of com.barrybecker4.puzzle.tantrix.model.TilePlacement.rotate()

        for (int i = 0; i < NUM_SIDES; i++) {
            if (isFit(placement)) {
                validPlacements.add(placement);
            }
            placement = placement.rotate();
        }
        return validPlacements;
    }

    /**
 
View Full Code Here

Examples of com.bramosystems.oss.player.core.client.geom.TransformationMatrix.rotate()

    @Test
    public void testRotate() {
        System.out.println("rotate");
        double angle = 6.0;
        TransformationMatrix instance = new TransformationMatrix();
        instance.rotate(angle);

        double cos = Math.cos(angle);
        double sin = Math.sin(angle);
        TransformationMatrix instance2 = new TransformationMatrix();
        instance2.getMatrix().getVx().setX(cos);
View Full Code Here

Examples of com.cburch.logisim.data.Bounds.rotate()

    } else {
      int x = -20;
      int y = reversed ? -10 : -(outputs * 10 + 10);
      bds = Bounds.create(x, y, 40, outputs * 10 + 20);
    }
    return bds.rotate(Direction.EAST, facing, 0, 0);
  }
 
  @Override
  public boolean contains(Location loc, AttributeSet attrs) {
    Direction facing = attrs.getValue(StdAttr.FACING).reverse();
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.