3d cartesian vector library