Code example for Matrix

Methods: setValues

0
	 * @param m12 MTRANS_Y 
	 */ 
	public static void setMatValues(Matrix mat, float m00, float m01, float m10, float m11, float m02, float m12) {
	   	float[] fs = {m00, m10, m02, m01, m11, m12, 0,0,1};
//	   	float[] fs = {m00, m01, m02, m10, m11, m12, 0,0,1}; 
	   	mat.setValues(fs);
	} 
 
	public static void setMatValues(Matrix mat, float[] m6) {
		setMatValues(mat, m6[0], m6[1], m6[2], m6[3], m6[4], m6[5]);
	} 
	 
	public static Matrix createMatrix(float m00, float m01, float m10, float m11, float m02, float m12) {
		Matrix result = new Matrix();
		setMatValues(result, m00,m01,m10,m11,m02,m12);
		return result;
	} 
	public static Matrix createMatrix(float[] m6) {
		return createMatrix(m6[0], m6[1], m6[2], m6[3], m6[4], m6[5]);
	}