예제 #1
0
파일: GLMatrix.java 프로젝트: hyl87/vtm
 /**
  * Multiply rhs onto lhs and store result in Matrix.
  *
  * <p>This matrix MUST be different from lhs and rhs!
  *
  * <p>As you know, when combining matrices for vector projection this has the same effect first as
  * applying rhs then lhs.
  *
  * @param lhs left hand side
  * @param rhs right hand side
  */
 public void multiplyMM(GLMatrix lhs, GLMatrix rhs) {
   System.arraycopy(lhs.val, 0, tmp, 0, 16);
   matrix4_mul(tmp, rhs.val);
   System.arraycopy(tmp, 0, val, 0, 16);
 }
예제 #2
0
파일: GLMatrix.java 프로젝트: hyl87/vtm
 /**
  * Multiply rhs onto Matrix.
  *
  * @param rhs right hand side
  */
 public void multiplyRhs(GLMatrix rhs) {
   matrix4_mul(val, rhs.val);
 }