Skip to content

Function: view3dUnproject() ​

ts
function view3dUnproject(camera, area, sx, sy): [number, number];

Experimental

The world point of the plot plane (z = 0) under a container point (sx, sy); NaN when the ray runs parallel to the plane.

Parameters ​

ParameterType
cameraView3DCamera
areaReadonly<ViewportRect>
sxnumber
synumber

Returns ​

[number, number]

Released under the MIT License.