Matrix Transformation In 3d