Click or drag to resize

PinnedTransformGesturedoScaling Method

Calculates scaling.

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

Parameters

center
Type: Vector3
Center screen position.
oldScreenPos
Type: Vector2
Pointer old screen position.
newScreenPos
Type: Vector2
Pointer new screen position.
projectionParams
Type: TouchScript.LayersProjectionParams
Layer projection parameters.

Return Value

Type: Single
Multiplicative delta scaling.
See Also