Skip to content

Class: PointerCameraInfo

PointerCameraInfo pointer information relevant to a camera.

Implements

Table of contents

Constructors

Properties

Methods

Constructors

constructor

+ new PointerCameraInfo(camera: IEntity, cameraPosition: Vector, worldPosition: Vector, withinBounds: boolean): PointerCameraInfo

Parameters:

Name Type
camera IEntity
cameraPosition Vector
worldPosition Vector
withinBounds boolean

Returns: PointerCameraInfo

Properties

camera

camera: IEntity

Entity of the camera.


cameraPosition

cameraPosition: Vector

Position of the pointer relative to the camera's viewport, from bottom left (-1, -1) to top right (1, 1).


withinBounds

withinBounds: boolean

If the pointer is within the camera viewport.


worldPosition

worldPosition: Vector

Position in the world of the pointer using this camera.

Methods

Free

Free(): void

Free releases an object or it's constituent parts back into any available object pools.

Returns: void

Implementation of: IFreeable