프로퍼티 | 타입 | 설명 | |
---|---|---|---|
angleBuffer | float | ||
debugCoroutine | |||
debugID | int | ||
debugTouchSize | Vector2 | ||
deltaPosition | Vector3 | ||
deltaRotation | float | ||
deltaScale | float | ||
isTransforming | bool | ||
minScreenPointsPixelDistance | float | ||
minScreenPointsPixelDistanceSquared | float | ||
scaleBuffer | float | ||
screenPixelRotationBuffer | float | ||
screenPixelScalingBuffer | float | ||
screenPixelTranslationBuffer | Vector2 | ||
screenTransformPixelThreshold | float | ||
screenTransformPixelThresholdSquared | float |
메소드 | 설명 | |
---|---|---|
Awake ( ) : void | ||
OnEnable ( ) : void | ||
clearDebug ( ) : void | ||
doOnePointTranslation ( Vector2 oldScreenPos, Vector2 newScreenPos, TouchScript.Layers.ProjectionParams projectionParams ) : Vector3 |
Calculates single finger translation.
|
|
doRotation ( Vector2 oldScreenPos1, Vector2 oldScreenPos2, Vector2 newScreenPos1, Vector2 newScreenPos2, TouchScript.Layers.ProjectionParams projectionParams ) : float |
Calculates rotation.
|
|
doScaling ( Vector2 oldScreenPos1, Vector2 oldScreenPos2, Vector2 newScreenPos1, Vector2 newScreenPos2, TouchScript.Layers.ProjectionParams projectionParams ) : float |
Calculates scaling.
|
|
doTwoPointTranslation ( Vector2 oldScreenPos1, Vector2 oldScreenPos2, Vector2 newScreenPos1, Vector2 newScreenPos2, float dR, float dS, TouchScript.Layers.ProjectionParams projectionParams ) : Vector3 |
Calculated two finger translation with respect to rotation and scaling.
|
|
drawDebug ( int touchPoints ) : void | ||
drawDebugDelayed ( int touchPoints ) : void | ||
getNumPoints ( ) : int |
Gets the number of points.
|
|
getPointPreviousScreenPosition ( int index ) : Vector2 |
Returns previous screen position of a point with index 0 or 1
|
|
getPointScreenPosition ( int index ) : Vector2 |
Returns screen position of a point with index 0 or 1
|
|
onBegan ( ) : void | ||
onChanged ( ) : void | ||
onRecognized ( ) : void | ||
relevantTouches1 ( IList |
Checks if there are touch points in the list which matter for the gesture.
|
|
relevantTouches2 ( IList |
Checks if there are touch points in the list which matter for the gesture.
|
|
reset ( ) : void | ||
touchesBegan ( IList |
||
touchesEnded ( IList |
||
touchesMoved ( IList |
메소드 | 설명 | |
---|---|---|
doDrawDebug ( int touchPoints ) : IEnumerator | ||
updateMinScreenPointsDistance ( ) : void | ||
updateScreenTransformThreshold ( ) : void |
protected doOnePointTranslation ( Vector2 oldScreenPos, Vector2 newScreenPos, TouchScript.Layers.ProjectionParams projectionParams ) : Vector3 | ||
oldScreenPos | Vector2 | Finger old screen position. |
newScreenPos | Vector2 | Finger new screen position. |
projectionParams | TouchScript.Layers.ProjectionParams | Layer projection parameters. |
리턴 | Vector3 |
protected doRotation ( Vector2 oldScreenPos1, Vector2 oldScreenPos2, Vector2 newScreenPos1, Vector2 newScreenPos2, TouchScript.Layers.ProjectionParams projectionParams ) : float | ||
oldScreenPos1 | Vector2 | Finger one old screen position. |
oldScreenPos2 | Vector2 | Finger two old screen position. |
newScreenPos1 | Vector2 | Finger one new screen position. |
newScreenPos2 | Vector2 | Finger two new screen position. |
projectionParams | TouchScript.Layers.ProjectionParams | Layer projection parameters. |
리턴 | float |
protected doScaling ( Vector2 oldScreenPos1, Vector2 oldScreenPos2, Vector2 newScreenPos1, Vector2 newScreenPos2, TouchScript.Layers.ProjectionParams projectionParams ) : float | ||
oldScreenPos1 | Vector2 | Finger one old screen position. |
oldScreenPos2 | Vector2 | Finger two old screen position. |
newScreenPos1 | Vector2 | Finger one new screen position. |
newScreenPos2 | Vector2 | Finger two new screen position. |
projectionParams | TouchScript.Layers.ProjectionParams | Layer projection parameters. |
리턴 | float |
protected doTwoPointTranslation ( Vector2 oldScreenPos1, Vector2 oldScreenPos2, Vector2 newScreenPos1, Vector2 newScreenPos2, float dR, float dS, TouchScript.Layers.ProjectionParams projectionParams ) : Vector3 | ||
oldScreenPos1 | Vector2 | Finger one old screen position. |
oldScreenPos2 | Vector2 | Finger two old screen position. |
newScreenPos1 | Vector2 | Finger one new screen position. |
newScreenPos2 | Vector2 | Finger two new screen position. |
dR | float | Calculated delta rotation. |
dS | float | Calculated delta scaling. |
projectionParams | TouchScript.Layers.ProjectionParams | Layer projection parameters. |
리턴 | Vector3 |
protected drawDebugDelayed ( int touchPoints ) : void | ||
touchPoints | int | |
리턴 | void |
protected getPointPreviousScreenPosition ( int index ) : Vector2 | ||
index | int | The index. |
리턴 | Vector2 |
protected getPointScreenPosition ( int index ) : Vector2 | ||
index | int | The index. |
리턴 | Vector2 |
protected relevantTouches1 ( IList |
||
touches | IList |
List of touch points. |
리턴 | bool |
protected relevantTouches2 ( IList |
||
touches | IList |
List of touch points. |
리턴 | bool |
protected float minScreenPointsPixelDistanceSquared | ||
리턴 | float |