ZCamera

constructor()(source)

Creates a ZCamera object with a default lens and default lookAt and up vectors.


constructor(lookAt: ZVector3, up: ZVector3, lens: ZPerspectiveLens)(source)

Initializes a ZCamera with the provided lookAt point, Up vector, and lens to be used.

Parameters

lookAt

The position to look at

up

The up direction

lens

The perspective lens


constructor(lookAt: ZVector3, up: ZVector3)(source)

Constructs a new ZCamera object with the given lookAt point and up vector. This constructor initializes the transform of the camera with the provided lookAt vector and up vector. It also sets the lens of the camera to the default perspective lens.

Parameters

lookAt

The position in world space that the camera should look at.

up

The up vector of the camera.