Package fcagnin.jglsdk.glm

Examples of fcagnin.jglsdk.glm.Mat4.mul()


      mat = Glm.translate(mat, new Vec3(0.0f, 0.0f, -m_currView.radius));

      // Rotate the world to look in the right direction..
      Quaternion fullRotation = Glm.angleAxis(m_currView.degSpinRotation, new Vec3(0.0f, 0.0f, 1.0f)).mul(m_currView.orient);

      mat.mul(Glm.matCast(fullRotation));

      // Translate the world by the negation of the lookat point, placing the origin at the lookat point.
      mat = Glm.translate(mat, Vec3.negate(m_currView.targetPos));

      return mat;
View Full Code Here


   
    public Mat4 calcMatrix() {
      Mat4 translateMat = new Mat4(1.0f);
      translateMat.setColumn(3, new Vec4(m_po.position, 1.0f));

      return translateMat.mul(Glm.matCast(m_po.orientation));
    }


   
    /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 
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.