Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CameraModifier

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.

Accessors

camera

  • set camera(camera: Camera | undefined): void
  • The camera that is to be modified in response to various events.

    Parameters

    Returns void

Methods

Abstract update

  • update(): void
  • Should apply all previously calculated transformations to the camera set. Note that this does not invalidate the rendering. Invalidation of rendering is done by the event handler (triggering a rendering update which in turn checks if the camera was altered, and if so, redraws).

    Returns void