Click or drag to resize

ScreenTransformGesturedoRotation Method

Calculates rotation.

Namespace:  TouchScript.Gestures.TransformGestures
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
C#
protected override float doRotation(
	Vector2 oldScreenPos1,
	Vector2 oldScreenPos2,
	Vector2 newScreenPos1,
	Vector2 newScreenPos2,
	ProjectionParams projectionParams
)

Parameters

oldScreenPos1
Type: Vector2
Finger one old screen position.
oldScreenPos2
Type: Vector2
Finger two old screen position.
newScreenPos1
Type: Vector2
Finger one new screen position.
newScreenPos2
Type: Vector2
Finger two new screen position.
projectionParams
Type: TouchScript.LayersProjectionParams
Layer projection parameters.

Return Value

Type: Single
Angle in degrees.
See Also