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
| Parameter | Type |
|---|---|
clip | readonly [number, number, number] |
projectionInverse | ArrayLike<number> |
out | [number, number, number, number] |
Returns
[number, number, number, number]