Interface RotationTouchData

The two-touch interaction data that represents a rotation.

interface RotationTouchData {
    diffClientX: number;
    diffClientY: number;
    diffPageX: number;
    diffPageY: number;
    diffScreenX: number;
    diffScreenY: number;
    rotationAngle: number;
    touch1: SrcTgtPointsData<TouchData>;
    touch2: SrcTgtPointsData<TouchData>;
    touches: readonly SrcTgtPointsData<TouchData>[];
    velocity(direction): number;
}

Hierarchy

Implemented by

Properties

diffClientX: number

The translation vector between the x client position of the source and the y client position of the target.

diffClientY: number

The translation vector between the y client position of the source and the y client position of the target.

diffPageX: number

The translation vector between the x page position of the source and the x page position of the target.

diffPageY: number

The translation vector between the y page position of the source and the y page position of the target.

diffScreenX: number

The translation vector between the x screen position of the source and the x screen position of the target.

diffScreenY: number

The translation vector between the y screen position of the source and the y screen position of the target.

rotationAngle: number

The computed rotation angle. This angle is computed following the clockwise direction.

The first touch

The second touch

touches: readonly SrcTgtPointsData<TouchData>[]

The list of touch data.

Methods

  • The velocity of the move, in pixels per millisecond. For multi-touch, the velocity is the mean of all the touch velocities.

    Parameters

    • direction: "all" | "horiz" | "vert"

      The direciton to consider.

    Returns number

Generated using TypeDoc