Code example for Matrix4f

0
 */ 
public class MatrixTransform extends Transform { 
 
    Matrix4f mLocalMatrix;
    public MatrixTransform() { 
        mLocalMatrix = new Matrix4f();
    } 
 
    public void setMatrix(Matrix4f matrix) {
        mLocalMatrix = matrix;
        updateRSData(); 
    } 
 
    public Matrix4f getMatrix() {
        return new Matrix4f(mLocalMatrix.getArray());
    } 
 
    void initLocalData() { 
        mTransformData.localMat = mLocalMatrix;
    }