C# Class TouchScript.Gestures.TransformGesture

Inheritance: TouchScript.Gestures.Base.TransformGestureBase, ITransformGesture
Show file Open project: DRMold/HungryHungryTetris Class Usage Examples

Public Methods

Method Description
ApplyTransform ( Transform target ) : void

Protected Methods

Method Description
Awake ( ) : void
OnEnable ( ) : void
clearDebug ( ) : void
doOnePointTranslation ( Vector2 oldScreenPos, Vector2 newScreenPos, TouchScript.Layers.ProjectionParams projectionParams ) : Vector3
doRotation ( Vector2 oldScreenPos1, Vector2 oldScreenPos2, Vector2 newScreenPos1, Vector2 newScreenPos2, TouchScript.Layers.ProjectionParams projectionParams ) : float
doScaling ( Vector2 oldScreenPos1, Vector2 oldScreenPos2, Vector2 newScreenPos1, Vector2 newScreenPos2, TouchScript.Layers.ProjectionParams projectionParams ) : float
doTwoPointTranslation ( Vector2 oldScreenPos1, Vector2 oldScreenPos2, Vector2 newScreenPos1, Vector2 newScreenPos2, float dR, float dS, TouchScript.Layers.ProjectionParams projectionParams ) : Vector3
drawDebug ( int touchPoints ) : void
projectScaledRotated ( Vector2 point, float dR, float dS, TouchScript.Layers.ProjectionParams projectionParams ) : Vector3
touchesBegan ( IList touches ) : void

Private Methods

Method Description
updateProjectionPlane ( ) : void

Updates projection plane based on options set.

Method Details

ApplyTransform() public method

public ApplyTransform ( Transform target ) : void
target UnityEngine.Transform
return void

Awake() protected method

protected Awake ( ) : void
return void

OnEnable() protected method

protected OnEnable ( ) : void
return void

clearDebug() protected method

protected clearDebug ( ) : void
return void

doOnePointTranslation() protected method

protected doOnePointTranslation ( Vector2 oldScreenPos, Vector2 newScreenPos, TouchScript.Layers.ProjectionParams projectionParams ) : Vector3
oldScreenPos UnityEngine.Vector2
newScreenPos UnityEngine.Vector2
projectionParams TouchScript.Layers.ProjectionParams
return UnityEngine.Vector3

doRotation() protected method

protected doRotation ( Vector2 oldScreenPos1, Vector2 oldScreenPos2, Vector2 newScreenPos1, Vector2 newScreenPos2, TouchScript.Layers.ProjectionParams projectionParams ) : float
oldScreenPos1 UnityEngine.Vector2
oldScreenPos2 UnityEngine.Vector2
newScreenPos1 UnityEngine.Vector2
newScreenPos2 UnityEngine.Vector2
projectionParams TouchScript.Layers.ProjectionParams
return float

doScaling() protected method

protected doScaling ( Vector2 oldScreenPos1, Vector2 oldScreenPos2, Vector2 newScreenPos1, Vector2 newScreenPos2, TouchScript.Layers.ProjectionParams projectionParams ) : float
oldScreenPos1 UnityEngine.Vector2
oldScreenPos2 UnityEngine.Vector2
newScreenPos1 UnityEngine.Vector2
newScreenPos2 UnityEngine.Vector2
projectionParams TouchScript.Layers.ProjectionParams
return float

doTwoPointTranslation() protected method

protected doTwoPointTranslation ( Vector2 oldScreenPos1, Vector2 oldScreenPos2, Vector2 newScreenPos1, Vector2 newScreenPos2, float dR, float dS, TouchScript.Layers.ProjectionParams projectionParams ) : Vector3
oldScreenPos1 UnityEngine.Vector2
oldScreenPos2 UnityEngine.Vector2
newScreenPos1 UnityEngine.Vector2
newScreenPos2 UnityEngine.Vector2
dR float
dS float
projectionParams TouchScript.Layers.ProjectionParams
return UnityEngine.Vector3

drawDebug() protected method

protected drawDebug ( int touchPoints ) : void
touchPoints int
return void

projectScaledRotated() protected method

protected projectScaledRotated ( Vector2 point, float dR, float dS, TouchScript.Layers.ProjectionParams projectionParams ) : Vector3
point UnityEngine.Vector2
dR float
dS float
projectionParams TouchScript.Layers.ProjectionParams
return UnityEngine.Vector3

touchesBegan() protected method

protected touchesBegan ( IList touches ) : void
touches IList
return void