例
(7,2,9)(7,2,9) , (10,1,1)(10,1,1)
ステップ 1
To find the distance between two 3d points, square the difference of the x, y, and z points. Then, sum them and take the square root.
√(x2-x1)2+(y2-y1)2+(z2-z1)2√(x2−x1)2+(y2−y1)2+(z2−z1)2
ステップ 2
x1x1、x2x2、y1y1、y2y2、z1z1、およびz2z2を換算値で置き換えます。
Distance=√(10-7)2+(1-2)2+(1-9)2Distance=√(10−7)2+(1−2)2+(1−9)2
ステップ 3
ステップ 3.1
1010から77を引きます。
Distance=√32+(1-2)2+(1-9)2Distance=√32+(1−2)2+(1−9)2
ステップ 3.2
33を22乗します。
Distance=√9+(1-2)2+(1-9)2Distance=√9+(1−2)2+(1−9)2
ステップ 3.3
11から22を引きます。
Distance=√9+(-1)2+(1-9)2Distance=√9+(−1)2+(1−9)2
ステップ 3.4
-1−1を22乗します。
Distance=√9+1+(1-9)2Distance=√9+1+(1−9)2
ステップ 3.5
11から99を引きます。
Distance=√9+1+(-8)2Distance=√9+1+(−8)2
ステップ 3.6
-8−8を22乗します。
Distance=√9+1+64Distance=√9+1+64
ステップ 3.7
99と11をたし算します。
Distance=√10+64Distance=√10+64
ステップ 3.8
1010と6464をたし算します。
Distance=√74Distance=√74
Distance=√74Distance=√74
ステップ 4
(7,2,9)(7,2,9)と(10,1,1)(10,1,1)の距離は√74√74です。
√74≈8.60232526√74≈8.60232526