Interface Projection

interface Projection {
    inverseProjMatrix: FloatArrayParam;
    projMatrix: FloatArrayParam;
    transposedProjMatrix: FloatArrayParam;
    unproject(canvasPos, screenZ, screenPos, viewPos, worldPos): FloatArrayParam;
}

Implemented by

Properties

inverseProjMatrix: FloatArrayParam
projMatrix: FloatArrayParam
transposedProjMatrix: FloatArrayParam

Methods

  • Un-projects the given View-space coordinates, using this OrthoProjection projection.

    Parameters

    • canvasPos: FloatArrayParam

      Inputs 2D View-space coordinates.

    • screenZ: number

      Inputs Screen-space Z coordinate.

    • screenPos: FloatArrayParam

      Outputs 3D Screen/Clip-space coordinates.

    • viewPos: FloatArrayParam

      Outputs un-projected 3D View-space coordinates.

    • worldPos: FloatArrayParam

      Outputs un-projected 3D World-space coordinates.

    Returns FloatArrayParam