Options
All
  • Public
  • Public/Protected
  • All
Menu

Class PanModifier

Hierarchy

Index

Properties

Protected _camera

_camera: Camera | undefined = undefined
see

camera

Protected _currentPoint

_currentPoint: vec2

Reference to the current point updating the camera modification.

Protected _initialPoint

_initialPoint: vec2

Reference to the initial point starting the camera modification.

Protected _reference

_reference: Camera = new Camera()

Copy of a camera for ongoing camera modifications based on previous/initial camera settings.

Protected _sensitivity

_sensitivity: number = PanModifier.DEFAULT_SENSITIVITY

Protected _translation

_translation: vec3 = v3()

Static Protected Readonly DEFAULT_SENSITIVITY

DEFAULT_SENSITIVITY: 0.002 = 0.002

Accessors

camera

  • set camera(camera: Camera | undefined): void

Methods

initiate

  • initiate(point: vec2): void
  • Initiate a new panning at a specific event position.

    Parameters

    • point: vec2

      Position of the current event to derive the magnitude for rotation from.

    Returns void

process

  • process(point: vec2): void
  • Update the panning transform w.r.t. a specific event position.

    Parameters

    • point: vec2

      Position of the current event to derive the magnitude for translation from.

    Returns void

update

  • update(): void