Click or drag to resize

TransformGesturedoOnePointTranslation Method

Calculates single finger translation.

Namespace:  TouchScript.Gestures.TransformGestures
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
C#
protected override Vector3 doOnePointTranslation(
	Vector2 oldScreenPos,
	Vector2 newScreenPos,
	ProjectionParams projectionParams
)

Parameters

oldScreenPos
Type: Vector2
Finger old screen position.
newScreenPos
Type: Vector2
Finger new screen position.
projectionParams
Type: TouchScript.LayersProjectionParams
Layer projection parameters.

Return Value

Type: Vector3
Delta translation vector.
See Also