public double distance ( Object pt1 , Object pt2 ) { Object p = newCopy ( pt1 ) ; subtract ( p , pt2 ) ; return magnitude ( p ) ; }
not used directly in algorithm but useful - override for good performance