Contents

new CameraZoomRange(min, max)

Creates an instance of a camera zoom range object with the specified numeric arguments that specify minimum and maximum camera distances.

Declaration

constructor(min: number, max: number);

Discussion

Calling the constructor with minimal camera distance and maximum camera distance creates a CameraZoomRange instance that constrains the camera.

Both minCameraDistance and maxCameraDistance must be greater than or equal to 0. The minCameraDistance must be less than or equal to the maxCameraDistance.

See Also

Defining a zoom range