GestureEventComposite Class
Namespace: Stride.InputAssembly: Stride.Input.dll
Event class for the Composite gesture.
public sealed class GestureEventComposite : GestureEvent
Name | Description | |
---|---|---|
Properties | ||
CenterBeginningPosition | The position of the center of the composite transformation at the beginning of the gesture (in normalized coordinates [0,1]). |
|
CenterCurrentPosition | The current position of the center of the composite transformation (in normalized coordinates [0,1]). |
|
DeltaRotation | The rotation angle (in radian) since the last event of the gesture. |
|
DeltaScale | The difference of scale since the last event of the gesture. |
|
DeltaTranslation | The translation performed since the last event of the gesture. |
|
TotalRotation | The rotation angle (in radian) since the beginning of the gesture. |
|
TotalScale | The difference of scale since the beginning of the gesture. |
|
TotalTranslation | The translation performed since the beginning of the gesture. |
Properties
CenterBeginningPosition
The position of the center of the composite transformation at the beginning of the gesture (in normalized coordinates [0,1]).
public Vector2 CenterBeginningPosition { get; }
Property Value
Type | Description |
---|---|
Vector2 |
Remarks
The center of the transformation corresponds to the middle of the 2 fingers.
CenterCurrentPosition
The current position of the center of the composite transformation (in normalized coordinates [0,1]).
public Vector2 CenterCurrentPosition { get; }
Property Value
Type | Description |
---|---|
Vector2 |
Remarks
The center of the transformation corresponds to the middle of the 2 fingers.
DeltaRotation
The rotation angle (in radian) since the last event of the gesture.
public float DeltaRotation { get; }
Property Value
Type | Description |
---|---|
System.Single |
DeltaScale
The difference of scale since the last event of the gesture.
public float DeltaScale { get; }
Property Value
Type | Description |
---|---|
System.Single |
DeltaTranslation
The translation performed since the last event of the gesture.
public Vector2 DeltaTranslation { get; }
Property Value
Type | Description |
---|---|
Vector2 |
TotalRotation
The rotation angle (in radian) since the beginning of the gesture.
public float TotalRotation { get; }
Property Value
Type | Description |
---|---|
System.Single |
TotalScale
The difference of scale since the beginning of the gesture.
public float TotalScale { get; }
Property Value
Type | Description |
---|---|
System.Single |
TotalTranslation
The translation performed since the beginning of the gesture.
public Vector2 TotalTranslation { get; }
Property Value
Type | Description |
---|---|
Vector2 |