3d space class based on the vec3 package.