Distance

Description

This function is used to return the distance with two points.

Syntax

 double Distance(double px1, double py1, double px2, double py2)

Parameters

px1

The X-coordinate of the first point.

py1

The Y-coordinate of the first point.

px2

The X-coordinate of the second point.

py2

The Y-coordinate of the second point.

Return

Return the distance.

Example

double ff=distance(1,1,3,3);
ff=;   //Should return 2.8284271247462.

See Also

Distance3D