graphics/projection: Add get_matrix() function