C# 클래스 TouchScript.Gestures.Base.TransformGestureBase

Abstract base class for Transform Gestures.
상속: Gesture
파일 보기 프로젝트 열기: DRMold/HungryHungryTetris

보호된 프로퍼티들

프로퍼티 타입 설명
angleBuffer float
debugCoroutine UnityEngine.Coroutine
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 touches ) : bool

Checks if there are touch points in the list which matter for the gesture.

relevantTouches2 ( IList touches ) : bool

Checks if there are touch points in the list which matter for the gesture.

reset ( ) : void
touchesBegan ( IList touches ) : void
touchesEnded ( IList touches ) : void
touchesMoved ( IList touches ) : void

비공개 메소드들

메소드 설명
doDrawDebug ( int touchPoints ) : IEnumerator
updateMinScreenPointsDistance ( ) : void
updateScreenTransformThreshold ( ) : void

메소드 상세

Awake() 보호된 메소드

protected Awake ( ) : void
리턴 void

OnEnable() 보호된 메소드

protected OnEnable ( ) : void
리턴 void

clearDebug() 보호된 메소드

protected clearDebug ( ) : void
리턴 void

doOnePointTranslation() 보호된 메소드

Calculates single finger translation.
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

doRotation() 보호된 메소드

Calculates rotation.
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

doScaling() 보호된 메소드

Calculates scaling.
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

doTwoPointTranslation() 보호된 메소드

Calculated two finger translation with respect to rotation and scaling.
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

drawDebug() 보호된 메소드

protected drawDebug ( int touchPoints ) : void
touchPoints int
리턴 void

drawDebugDelayed() 보호된 메소드

protected drawDebugDelayed ( int touchPoints ) : void
touchPoints int
리턴 void

getNumPoints() 보호된 메소드

Gets the number of points.
protected getNumPoints ( ) : int
리턴 int

getPointPreviousScreenPosition() 보호된 메소드

Returns previous screen position of a point with index 0 or 1
protected getPointPreviousScreenPosition ( int index ) : Vector2
index int The index.
리턴 Vector2

getPointScreenPosition() 보호된 메소드

Returns screen position of a point with index 0 or 1
protected getPointScreenPosition ( int index ) : Vector2
index int The index.
리턴 Vector2

onBegan() 보호된 메소드

protected onBegan ( ) : void
리턴 void

onChanged() 보호된 메소드

protected onChanged ( ) : void
리턴 void

onRecognized() 보호된 메소드

protected onRecognized ( ) : void
리턴 void

relevantTouches1() 보호된 메소드

Checks if there are touch points in the list which matter for the gesture.
protected relevantTouches1 ( IList touches ) : bool
touches IList List of touch points.
리턴 bool

relevantTouches2() 보호된 메소드

Checks if there are touch points in the list which matter for the gesture.
protected relevantTouches2 ( IList touches ) : bool
touches IList List of touch points.
리턴 bool

reset() 보호된 메소드

protected reset ( ) : void
리턴 void

touchesBegan() 보호된 메소드

protected touchesBegan ( IList touches ) : void
touches IList
리턴 void

touchesEnded() 보호된 메소드

protected touchesEnded ( IList touches ) : void
touches IList
리턴 void

touchesMoved() 보호된 메소드

protected touchesMoved ( IList touches ) : void
touches IList
리턴 void

프로퍼티 상세

angleBuffer 보호되어 있는 프로퍼티

Angle buffer.
protected float angleBuffer
리턴 float

debugCoroutine 보호되어 있는 프로퍼티

protected Coroutine,UnityEngine debugCoroutine
리턴 UnityEngine.Coroutine

debugID 보호되어 있는 프로퍼티

protected int debugID
리턴 int

debugTouchSize 보호되어 있는 프로퍼티

protected Vector2 debugTouchSize
리턴 Vector2

deltaPosition 보호되어 있는 프로퍼티

Calculated delta position.
protected Vector3 deltaPosition
리턴 Vector3

deltaRotation 보호되어 있는 프로퍼티

Calculated delta rotation.
protected float deltaRotation
리턴 float

deltaScale 보호되어 있는 프로퍼티

Calculated delta scale.
protected float deltaScale
리턴 float

isTransforming 보호되어 있는 프로퍼티

Indicates whether transformation started;
protected bool isTransforming
리턴 bool

minScreenPointsPixelDistance 보호되어 있는 프로퍼티

MinScreenPointsDistance in pixels for internal use.
protected float minScreenPointsPixelDistance
리턴 float

minScreenPointsPixelDistanceSquared 보호되어 있는 프로퍼티

MinScreenPointsDistance squared in pixels for internal use.
protected float minScreenPointsPixelDistanceSquared
리턴 float

scaleBuffer 보호되어 있는 프로퍼티

Scaling buffer.
protected float scaleBuffer
리턴 float

screenPixelRotationBuffer 보호되어 있는 프로퍼티

Rotation buffer.
protected float screenPixelRotationBuffer
리턴 float

screenPixelScalingBuffer 보호되어 있는 프로퍼티

Screen space scaling buffer.
protected float screenPixelScalingBuffer
리턴 float

screenPixelTranslationBuffer 보호되어 있는 프로퍼티

Translation buffer.
protected Vector2 screenPixelTranslationBuffer
리턴 Vector2

screenTransformPixelThreshold 보호되어 있는 프로퍼티

ScreenTransformThreshold in pixels.
protected float screenTransformPixelThreshold
리턴 float

screenTransformPixelThresholdSquared 보호되어 있는 프로퍼티

ScreenTransformThreshold in pixels squared.
protected float screenTransformPixelThresholdSquared
리턴 float