Typically if it is a linear function then it doesn't matter. However if it is a quadratic, cubic, and so on and so forth....(

) you may want to used the distance formula if you are not given any other points (with the exception of the vertex, asymptote or roots... etc).