r"""Distance Formula: \sqrt{(x_2-x_1)^2 + (y_2-y_1)^2}
(x_1, y_1, x_2, y_2)
| 69 | |
| 70 | import numpy as np |
| 71 | def distance_formula(x_1, y_1, x_2, y_2): |
| 72 | r"""Distance Formula: \sqrt{(x_2-x_1)^2 + (y_2-y_1)^2}""" |
| 73 | return np.sqrt((-x_1 + x_2) ** 2 + (-y_1 + y_2) ** 2) |
| 74 | |
| 75 | |
| 76 | import numpy as np |