Skip to content

@orillusion/core


Class: CameraUtil ​

Defined in: src/util/CameraUtil.ts:19

Camera3D tool class

Constructors ​

Constructor ​

new CameraUtil(): CameraUtil

Returns ​

CameraUtil

Methods ​

createCamera3DObject() ​

static createCamera3DObject(parent?, name?): Camera3D

Defined in: src/util/CameraUtil.ts:26

create a Camera3D component

Parameters ​

parent? ​

Object3D

parent object3D

name? ​

string

set name to the owner of this camera3D

Returns ​

Camera3D


UnProjectionNDC() ​

static UnProjectionNDC(ndcX, ndcY, sZ, camera, target?): Vector3

Defined in: src/util/CameraUtil.ts:71

Unproject a normalized-device-coordinate point (x, y in [-1, 1], y up) at depth sZ to world space.

Parameters ​

ndcX ​

number

NDC x

ndcY ​

number

NDC y

sZ ​

number

NDC depth

camera ​

Camera3D

camera to unproject through

target? ​

Vector3

optional output

Returns ​

Vector3

Released under the MIT License