Core Function Distance3D
From Sputnik Wiki
Distance3D( <x1>, <y1>, <z1>, <x2>, <y2>, <z2> )
Contents |
Description
Finds the distance between two points on a 3D surface.
Parameters
x1
The point on the x-axis of the first point.
y1
The point on the y-axis of the first point.
z1
The point on the z-axis of the first point.
x2
The point on the x-axis of the second point.
y2
The point on the y-axis of the second point.
z2
The point on the z-axis of the second point.
Return Value
The distance between the two points.
Remarks
None.
Example
say Distance3D(10, 20, 30, 10, 20, 30); // 0 say Distance3D(10, 20, 30, 10, 20, 44); // 14 say Distance3D(10, 20, 30, 10, 20, 2); // 28