ScreenTransformGesturedoScaling Method |
Calculates scaling.
Namespace:
TouchScript.Gestures.TransformGestures
Assembly:
Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax protected override float doScaling(
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 Multiplicative delta scaling.
See Also