Options
All
  • Public
  • Public/Protected
  • All
Menu

Class PinchZoomModifier

Hierarchy

Index

Constructors

constructor

Properties

Protected _camera

_camera: undefined | Camera = ...
see

camera

Protected _currentDistance

_currentDistance: number

Protected _currentPoint

_currentPoint: vec2

Reference to the current point updating the camera modification.

Protected _initialDistance

_initialDistance: number

Protected _initialPoint

_initialPoint: vec2

Reference to the initial point starting the camera modification.

Protected _reference

_reference: Camera = ...

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

Protected _sensitivity

_sensitivity: number = ...

Protected _translation

_translation: vec3 = ...

Static Protected Readonly DEFAULT_SENSITIVITY

DEFAULT_SENSITIVITY: 2 = 2.0

Accessors

camera

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

Methods

initiate

  • initiate(point1: vec2, point2: vec2): void

process

  • process(point1: vec2, point2: vec2): void

update

  • update(): void