What is the formula of distance?
- अरुण कुमार
- 0
- Posted on
The distance between two points in a plane or in a three-dimensional space can be calculated using the following formulas:
2D distance formula:
d = √((x2 – x1)^2 + (y2 – y1)^2)
where
- (x1, y1) and
- (x2, y2) are the coordinates of the two points.
3D distance formula:
d = √((x2 – x1)^2 + (y2 – y1)^2 + (z2 – z1)^2)
where
- (x1, y1, z1) and
- (x2, y2, z2) are the coordinates of the two points in three-dimensional space.
These formulas are known as the Euclidean distance formulas.