If the distance formula is used to determine the type of quadrilateral, then we are interested in knowing whether the opposite sides are congruent or adjacent sides are congruent.
We can also use the length of diagonals to determine which type of quadrilateral.