TwoPointTransformGestureBasedoOnePointTranslation Method |
Calculates single finger translation.
Namespace:
TouchScript.Gestures.TransformGestures.Base
Assembly:
Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax protected virtual 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