Examples of rotate()


Examples of powercrystals.core.position.IRotateableTile.rotate()

    if(te instanceof IRotateableTile)
    {
      IRotateableTile tile = ((IRotateableTile)te);
      if (tile.canRotate())
      {
        tile.rotate();
        return true;
      }
    }
    return false;
  }
View Full Code Here

Examples of prefuse.Display.rotate()

            double angle = Math.atan2(dy, dx);
           
            // only rotate once the base angle has been established
            if ( !Double.isNaN(baseAngle) ) {
                Display display = (Display)e.getComponent();
                display.rotate(down, angle-baseAngle);
            }
            baseAngle = angle;
        }
    }
   
View Full Code Here

Examples of processing.core.PGraphics.rotate()

    int fuselageRadius = wingLength / 3;
    pg.fill(COLOR_INDICATOR);
    pg.stroke(COLOR_INDICATOR);
    pg.pushMatrix();
    pg.translate(content.getWidth() / 2, content.getHeight() / 2 + (float )elevatorOffset);
    pg.rotate((float )aileronAngle);
    pg.strokeWeight(3);
    pg.line(-wingLength - indicatorOversize, 0, wingLength + indicatorOversize, 0);
    pg.line(0, 0, 0, - (rudderHeight + indicatorOversize));
    pg.strokeWeight(1);
    pg.ellipse(0, 0, fuselageRadius, fuselageRadius);
View Full Code Here

Examples of processing.core.PGraphicsJava2D.rotate()

      snap.popMatrix();
    }
    if(vsb != null){
      snap.pushMatrix();
      snap.translate(vsb.getX(), vsb.getY());
      snap.rotate(PApplet.PI/2);
      snap.image(vsb.getBuffer(), 0, 0);
      snap.popMatrix();
    }
    snap.endDraw();
    return snap;
View Full Code Here

Examples of railo.runtime.img.Image.rotate()

    else if("bicubic".equals(strInterpolation)) interpolation=railo.runtime.img.Image.INTERPOLATION_BICUBIC;
    else if("none".equals(strInterpolation)) interpolation=railo.runtime.img.Image.INTERPOLATION_NONE;
    else throw new ExpressionException("invalid interpolation definition ["+strInterpolation+"]," +
        " valid values are [nearest,bilinear,bicubic]");
   
    img.rotate(x,y,angle,interpolation);
    return null;
   
  }
}
View Full Code Here

Examples of toxi.geom.Vec2D.rotate()

  }

  public static Vec2D rotate(Vec2D curVec, Vec2D center, float r) {
    Vec2D returnVec = curVec.copy();
    returnVec.subSelf(center);
    returnVec.rotate(r);
    returnVec.addSelf(center);
    return returnVec;
   
   
  }
View Full Code Here

Examples of universalelectricity.api.vector.Vector3.rotate()

    Vector3 projectorPos = new Vector3((TileEntity) projector);
    projectorPos.add(projector.getTranslation());

    Vector3 relativePosition = position.clone().subtract(projectorPos);
    relativePosition.rotate(-projector.getRotationYaw(), -projector.getRotationPitch());

    if (relativePosition.x * relativePosition.x + relativePosition.z * relativePosition.z + RADIUS_Expansion <= radius * radius)
    {
      return true;
    }
View Full Code Here

Examples of us.ihmc.graphics3DAdapter.graphics.Graphics3DObject.rotate()

      Link xPendulumArmGimbalLink = new Link("xPendulumArmGimbalLink");
      xPendulumArmGimbalLink.setMassAndRadiiOfGyration(0.05, 0.02, 0.02, 0.02);
      xPendulumArmGimbalLink.setComOffset(-ARM_LENGTH/2.0, 0.0, 0.0);
      Graphics3DObject xPendulumArmGimbalLinkGraphics = new Graphics3DObject();
      xPendulumArmGimbalLinkGraphics.addSphere(0.04, YoAppearance.Red());
      xPendulumArmGimbalLinkGraphics.rotate(-Math.PI/2.0, Axis.Y);
      xPendulumArmGimbalLinkGraphics.addCylinder(ARM_LENGTH, ARM_RADIUS, YoAppearance.Pink());
     
      // Pen:
      xPendulumArmGimbalLinkGraphics.identity();
      xPendulumArmGimbalLinkGraphics.translate(-ARM_LENGTH, 0.0, -PEN_HEIGHT);
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.