Package org.earth3d.jearth.math

Examples of org.earth3d.jearth.math.Matrix


    float matrix[] = new float[16];
    Quaternion quat = new Quaternion();
    quat.createFromAxisAngle((float) isect.x, (float) isect.y, (float) isect.z, angle);
    quat.createMatrix(matrix);
   
    Matrix mMatrix = new Matrix(matrix);
   
    direction = mMatrix.multvector(direction);
    up = mMatrix.multvector(up);
    dirToIsect = mMatrix.multvector(dirToIsect);

    viewer = isect.sub(dirToIsect);
    return true;
  }
View Full Code Here


    gl.glGetFloatv(GL.GL_PROJECTION_MATRIX, projection);
    FloatBuffer modelview = FloatBuffer.allocate(16);
    gl.glGetFloatv(GL.GL_MODELVIEW_MATRIX, modelview);

    /* get the resulting matrix */
    Matrix pm = new Matrix(projection);
    Matrix projmodelmatrix = pm.multiply(new Matrix(modelview));

    frustum.calculateFrustum(gl);

    /* check if the object/tree should be drawn at all
     */
 
View Full Code Here

TOP

Related Classes of org.earth3d.jearth.math.Matrix

Copyright © 2018 www.massapicom. 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.