Core Function Distance2D

From Sputnik Wiki
Jump to: navigation, search
Distance2D( <x1>, <y1>, <x2>, <y2> )

Contents

Description

Finds the distance between two points on a 2D surface.

Parameters

x1

The point on the x-axis of the first point.

y1

The point on the y-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.

Return Value

The distance between the two points.

Remarks

None.

Example

say Distance2D(10, 20, 30, 40); // 28.2842712474619
say Distance2D(10, 20, 10, 21); // 1
say Distance2D(10, 20, 10, 19); // 1
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox