Use mat2d instead of mat3