The distance between two points ( x 1 , y 1 ) {\textstyle (x_{1},y_{1})} and ( x 2 , y 2 ) {\textstyle (x_{2},y_{2})} is given by ( x 1 − x 2 ) 2 + ( y 1 − y 2 ) 2 {\textstyle {\sqrt {(x_{1}-x_{2})^{2}+(y_{1}-y_{2})^{2}}}} .