lib/matrix: add services for projection Matrix and 3D coord manipulation