Class: ProjectionMatrix

SQR. ProjectionMatrix

Constructor

new ProjectionMatrix()

The 4x4 matrix is a specialized 4x4 matrix used for perspective and orthographic projection.
Source:

Members

(readonly) far

Properties:
Name Type Description
the far clipping
Source:

(readonly) far

Properties:
Name Type Attributes Description
the Number <optional>
far clipping plane
Default Value:
  • 1000
Source:

(readonly) fov

Properties:
Name Type Description
the Number field ov view
Default Value:
  • 60
Source:

(readonly) near

Properties:
Name Type Attributes Description
the Number <optional>
near clipping plane
Default Value:
  • 1
Source:

(readonly) near

Properties:
Name Type Description
the near clipping
Source:

Methods

identity()

Resets the matrix to identity
Source:

orthographic()

Returns an orthographic projection matrix.
Source:

perspective()

Returns a perspective projection matrix.
Source:

screenPixels2d()

Returns an orthographic projection matrix that is set in screen coordinates.
Source:

transformVector()

Returns vector mautipled by this matrix
Source: