dist()
Calculate the distance between 2 points
Example

Syntax
In two dimensions
Input
Description
x1
the x-coordinate of the first point
y1
the y-coordinate of the first point
x2
the x-coordinate of the second point
y2
the y-coordinate of the second point
In three dimensions
Input
Description
z1
the z-coordinate of the first point
z2
the z-coordinate of the second point

Description
Calculates the distance between two points, in either two or three dimensions. This uses the Euclidean distance, usually called the Pythagorean distance
Last updated