PerspectiveCamera
Defined in: radiance/src/cameras/PerspectiveCamera.ts:4
A pinhole camera: everything in focus, a vertical field of view and an aspect ratio.
Extends
Section titled “Extends”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new PerspectiveCamera(
fov?,aspect?):PerspectiveCamera
Defined in: radiance/src/cameras/PerspectiveCamera.ts:5
Parameters
Section titled “Parameters”number = 50
The vertical field of view, in degrees.
aspect?
Section titled “aspect?”number = 1
Width over height; the renderer’s frame should have the same.
Returns
Section titled “Returns”PerspectiveCamera
Overrides
Section titled “Overrides”Properties
Section titled “Properties”aspect
Section titled “aspect”aspect:
number=1
Defined in: radiance/src/cameras/PerspectiveCamera.ts:9
Width over height; the renderer’s frame should have the same.
children
Section titled “children”
readonlychildren:Object3D[] =[]
Defined in: radiance/src/core/Object3D.ts:21
Inherited from
Section titled “Inherited from”fov:
number=50
Defined in: radiance/src/cameras/PerspectiveCamera.ts:7
The vertical field of view, in degrees.
readonlyid:number
Defined in: radiance/src/core/Object3D.ts:13
Inherited from
Section titled “Inherited from”isCamera
Section titled “isCamera”
readonlyisCamera:true=true
Defined in: radiance/src/cameras/Camera.ts:5
Inherited from
Section titled “Inherited from”matrix
Section titled “matrix”
readonlymatrix:Matrix4
Defined in: radiance/src/core/Object3D.ts:18
Inherited from
Section titled “Inherited from”matrixWorld
Section titled “matrixWorld”
readonlymatrixWorld:Matrix4
Defined in: radiance/src/core/Object3D.ts:19
Inherited from
Section titled “Inherited from”name:
string=''
Defined in: radiance/src/core/Object3D.ts:14
Inherited from
Section titled “Inherited from”parent
Section titled “parent”parent:
Object3D|null=null
Defined in: radiance/src/core/Object3D.ts:20
Inherited from
Section titled “Inherited from”position
Section titled “position”
readonlyposition:Vector3
Defined in: radiance/src/core/Object3D.ts:15
Inherited from
Section titled “Inherited from”rotation
Section titled “rotation”
readonlyrotation:Euler
Defined in: radiance/src/core/Object3D.ts:16
Inherited from
Section titled “Inherited from”
readonlyscale:Vector3
Defined in: radiance/src/core/Object3D.ts:17
Inherited from
Section titled “Inherited from”visible
Section titled “visible”visible:
boolean=true
Defined in: radiance/src/core/Object3D.ts:23
Hidden objects and their children are left out of the render.
Inherited from
Section titled “Inherited from”Methods
Section titled “Methods”add(…
objects):this
Defined in: radiance/src/core/Object3D.ts:25
Parameters
Section titled “Parameters”objects
Section titled “objects”…Object3D[]
Returns
Section titled “Returns”this
Inherited from
Section titled “Inherited from”lookAt()
Section titled “lookAt()”lookAt(
target):this
Defined in: radiance/src/core/Object3D.ts:71
Turn so that the object’s -z axis points at target (in its parent’s space), with no roll:
how a camera is aimed. Straight up or down keeps the current yaw.
Parameters
Section titled “Parameters”target
Section titled “target”Returns
Section titled “Returns”this
Inherited from
Section titled “Inherited from”remove()
Section titled “remove()”remove(…
objects):this
Defined in: radiance/src/core/Object3D.ts:35
Parameters
Section titled “Parameters”objects
Section titled “objects”…Object3D[]
Returns
Section titled “Returns”this
Inherited from
Section titled “Inherited from”traverse()
Section titled “traverse()”traverse(
fn):void
Defined in: radiance/src/core/Object3D.ts:47
Call fn on this object and every descendant, parents first.
Parameters
Section titled “Parameters”(o) => void
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”traverseVisible()
Section titled “traverseVisible()”traverseVisible(
fn):void
Defined in: radiance/src/core/Object3D.ts:53
Like traverse, but skipping hidden objects and what is under them.
Parameters
Section titled “Parameters”(o) => void
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”updateMatrixWorld()
Section titled “updateMatrixWorld()”updateMatrixWorld():
void
Defined in: radiance/src/core/Object3D.ts:60
Recompute matrix from position, rotation and scale, and matrixWorld down the tree.
Returns
Section titled “Returns”void