Click or drag to resize

GestureRecognizerPointsAreWithinDistance Method

Determines whether two points are within a specified distance

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

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.
d
Type: SystemSingle
Distance in units

Return Value

Type: Boolean
True if within distance false otherwise
See Also