Click or drag to resize

GestureRecognizerDistanceBetweenPoints Method

Gets the distance between two points, in units

Namespace:  DigitalRubyShared
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
C#
public float DistanceBetweenPoints(
	float x1,
	float y1,
	float x2,
	float y2
)

Parameters

x1
Type: SystemSingle
The first x value in pixels.
y1
Type: SystemSingle
The first y value in pixels.
x2
Type: SystemSingle
The second x value in pixels.
y2
Type: SystemSingle
The second y value in pixels.

Return Value

Type: Single
The distance between the two points in units.
See Also