Skip to content

Function: clipToView() ​

ts
function clipToView(clip, projectionInverse, out?): [number, number, number, number];

Experimental

Un-project a Plotly lightposition (clip space) into view space through the camera's inverse projection (column-major), as gl-mesh3d does. Writes [x, y, z, 1], or a direction [x, y, z, 0] when the point is at infinity.

Parameters ​

ParameterType
clipreadonly [number, number, number]
projectionInverseArrayLike<number>
out[number, number, number, number]

Returns ​

[number, number, number, number]

Released under the MIT License.