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 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:
SingleThe distance between the two points in units.
See Also