Distance3D

Contents

Description

This function is used to return the distance of two points in 3D. .

Syntax

double Distance3D(double px1, double py1, double pz1, double px2, double py2, double pz2)

Input Arguments

All arguments are of numeric type double

px1

The X-coordinate of the first point.

py1

The Y-coordinate of the first point.

pz1

The Z-coordinate of the first point.

px2

The X-coordinate of the second point.

py2

The Y-coordinate of the second point.

pz2

The Z-coordinate of the second point.

Return

Return the distance.

Example

double ff=distance3D(1,1,1,3,3,3);
ff=; //Should return 3.4641016151378.

See Also

Distance