Hide menu
Loading...
Searching...
No Matches
Camera

Defines a PMI camera.

Extends

Constructors

Constructor

‍new Camera(location?, target?, up?, name?): Camera

Creates camera.

The provided points and directions are copied.

Parameters

location?

Point

Camera location.

target?

Point

Camera target point.

up?

Direction

Camera up direction.

name?

string

Camera name.

Returns

Camera

Overrides

BaseObject.constructor

Accessors

id

Get Signature

‍get id(): bigint

Returns the unique identifier of the object.

Returns

bigint

Inherited from

BaseObject.id


location

Get Signature

‍get location(): Point

Returns the location of the camera.

Returns

Point

Set Signature

‍set location(location): void

Sets the location of the camera.

Parameters

location

Point

Location to assign to the camera.

Returns

void


name

Get Signature

‍get name(): string | null

Returns the name of the camera.

Returns

string | null

Set Signature

‍set name(name): void

Sets the name of the camera.

Parameters

name

string | null

Name to assign to the camera.

Returns

void


target

Get Signature

‍get target(): Point

Returns the target of the camera.

Returns

Point

Set Signature

‍set target(target): void

Sets the target of the camera.

Parameters

target

Point

Target to assign to the camera.

Returns

void


up

Get Signature

‍get up(): Direction

Returns the up direction of the camera.

Returns

Direction

Set Signature

‍set up(up): void

Sets the up direction of the camera.

Parameters

up

Direction

Up direction to assign to the camera.

Returns

void