Stride

OPEN / CLOSE
  • Features
  • Blog
  • Documentation
  • Community
(icon) Download

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

OPEN / CLOSE
  • English
  • 日本語
    Show / Hide Table of Contents

    GestureEventComposite Class

    Namespace: Stride.Input
    Assembly: Stride.Input.dll

    Event class for the Composite gesture.

    System.Object → GestureEvent → GestureEventComposite
    Derived from GestureEventComposite:

    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.

    | Improve this Doc View Source

    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

    Inherited Members

    GestureEvent.State
    GestureEvent.Type
    GestureEvent.NumberOfFinger
    GestureEvent.DeltaTime
    GestureEvent.TotalTime

    Extension Methods

    ComponentBaseExtensions.DisposeBy<T>(T, ICollectorHolder)
    ComponentBaseExtensions.RemoveDisposeBy<T>(T, ICollectorHolder)
    • Improve this Doc
    • View Source
    In This Article
    In This Article
    • Properties
      • CenterBeginningPosition
      • CenterCurrentPosition
      • DeltaRotation
      • DeltaScale
      • DeltaTranslation
      • TotalRotation
      • TotalScale
      • TotalTranslation
    • Inherited Members
    • Extension Methods

    Back to top

    Copyright © 2019-2021 .NET Foundation and Contributors
    Supported by the .NET Foundation