Basic math point distance for algebra.