This function calculates the Euclidean distance between two points, typically in a matrix.

distance(x1, y1, x2, y2)

Arguments

x1

X-coordinate of the first point.

y1

Y-coordinate of the first point.

x2

X-coordinate of the second point.

y2

Y-coordinate of the second point.

Value

Euclidean distance between the two points.