Home Reference Source
import {Perspective} from 'bimsurfer3/viewer/perspective.js'
public class | source

Perspective

Extends:

Projection → Perspective

Configures perspective projection mode for the camera. Perspective projection is represented as a viewing frustum, given as six planes, along with a field of view (FOV) angle.

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public set

fov(fov: Number)

Sets the frustum's vertical field of view,} from bottom to top of view, in degrees. Default is 45.

public get

fov: Number: *

Gets the frustum's vertical field of view,} from bottom to top of view, in degrees.

Private Members
private
private
private

Method Summary

Public Methods
public

build()

Inherited Summary

From class Projection
public get

far: Number: *

Gets the position of the far clipping plane on the positive View-space Z-axis.

public set

far(far: Number)

Sets the position of the far plane on the positive View-space Z-axis.

public get

near: Number: *

Gets the position of the near plane on the positive View-space Z-axis.

public set

near(near: Number)

Sets the position of the near plane on the positive View-space Z-axis.

public get

Gets the current projection projection transform matrix.

public get
public
public

viewer: *

private
private

_far: *

private

_near: *

private
private
public

build()

public

setModelBounds(modelBounds: *)

private

Public Constructors

public constructor() source

Override:

Projection#constructor

Public Members

public set fov(fov: Number) source

Sets the frustum's vertical field of view,} from bottom to top of view, in degrees. Default is 45.

public get fov: Number: * source

Gets the frustum's vertical field of view,} from bottom to top of view, in degrees.

Return:

Number

Field of view angle, in degrees.

Private Members

private _far: number source

Override:

Projection#_far

private _fov: number source

private _near: number source

Override:

Projection#_near

Public Methods

public build() source

Override:

Projection#build