That is technically known as a line segment.
The distance between two points (in 2 dimension) is calculated by:
If (x1,y1) and (x2,y2) are the two points, then the distance is sqrt((x1 - x2)2 + (y1 - y2)2)
If you have 3 dimensional, then just subtract and square the z coordinates, as well:
sqrt((x1 - x2)2 + (y1 - y2)2 + (z1 - z2)2)
Chat with our AI personalities
No. A line segment has two endpoints and a finite length,and includes all points on the line between its endpoints.
the measure of a straight-line distance between two points is called length.
Length is the distance - in given units - between two points on a line.
That's called the "distance" between the points.
Not necessarily. The length in a line chart will represent the Euclidean distance between two points.