TwoPointTransformGestureBasedoTwoPointTranslation Method |
Calculated two finger translation with respect to rotation and scaling.
Namespace:
TouchScript.Gestures.TransformGestures.Base
Assembly:
Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax protected virtual Vector3 doTwoPointTranslation(
Vector2 oldScreenPos1,
Vector2 oldScreenPos2,
Vector2 newScreenPos1,
Vector2 newScreenPos2,
float dR,
float dS,
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. - dR
- Type: SystemSingle
Calculated delta rotation. - dS
- Type: SystemSingle
Calculated delta scaling. - projectionParams
- Type: TouchScript.LayersProjectionParams
Layer projection parameters.
Return Value
Type:
Vector3 Delta translation vector.
See Also