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

Projection

Direct Subclass:

Orthographic, Perspective

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public set

far(far: Number)

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

public get

far: Number: *

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

public
public set

near(near: Number)

Sets the position of the near 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 get

Gets the current projection projection transform matrix.

public get
public

viewer: *

Private Members
private
private

_far: *

private

_near: *

private
private

Method Summary

Public Methods
public

build()

public

setModelBounds(modelBounds: *)

Private Methods
private

Public Constructors

public constructor() source

Public Members

public set far(far: Number) source

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

public get far: Number: * source

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

Return:

Number

Position of the far clipping plane.

public modelBounds: * source

public set near(near: Number) source

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

public get near: Number: * source

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

Return:

Number

Position of the near clipping plane.

public get projMatrix: Float32Array: * source

Gets the current projection projection transform matrix.

This will be the camera's current projection matrix when it's in perspective projection mode.

Return:

Float32Array

4x4 column-order matrix as an array of 16 contiguous floats.

public get projMatrixInverted: * source

public viewer: * source

Private Members

private _dirty: boolean source

private _far: * source

private _near: * source

private _projMatrix: * source

private _projMatrixInverted: * source

Public Methods

public build() source

public setModelBounds(modelBounds: *) source

Params:

NameTypeAttributeDescription
modelBounds *

Private Methods

private _setDirty() source