Examples of rotY()


Examples of javax.vecmath.Matrix4f.rotY()

    Matrix4f mat = new Matrix4f();
   
    switch (upAxis) {
      case 0:
        //glRotatef(-90f, 0.0f, 1.0f, 0.0f);
        mat.rotY((float)Math.PI * -0.5f);
        mulMatrix(mat);
        glTranslatef(0.0f, 0.0f, -halfHeight);
        break;
      case 1:
        //glRotatef(-90.0f, 1.0f, 0.0f, 0.0f);
View Full Code Here

Examples of javax.vecmath.Matrix4f.rotY()

    cylinder.setDrawStyle(Quadric.GLU_FILL);
    cylinder.setNormals(Quadric.GLU_SMOOTH);
    cylinder.draw(gl, radius, radius, 2f * halfHeight, 8, 1);
   
    glTranslatef(0f, 0f, 2f * halfHeight);
    mat.rotY(-(float)Math.PI);
    mulMatrix(mat);
    disk.draw(gl, 0, radius, 8, 1);

    glPopMatrix();
  }
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.