Add 2D/3D distance to methods to vector classes.