/** * 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); }
/** * Multiply rhs onto Matrix. * * @param rhs right hand side */ public void multiplyRhs(GLMatrix rhs) { matrix4_mul(val, rhs.val); }