Methods
Methods
copy
-
Creates a copy of the camera.
Returns Camera
new object initialized with the current values of this camera
dolly
-
Move the camera along a delta
Parameters
-
delta: Point3
Returns void
-
equals
-
Returns checks for equality with another camera
Parameters
-
cam: Camera
the camera to compare against
Returns boolean
-
equalsWithTolerance
-
Returns checks for equality with another camera with tolerance
Parameters
-
cam: Camera
the camera to compare against
-
tolerance: number
floating point tolerance
Returns boolean
-
forJson
[deprecated]
-
Returns Object
getCameraPlaneIntersectionPoint
getFullMatrix
getHeight
-
gets the camera height
Returns number
the camera width
getMatrixFromCamera
[deprecated]
-
Returns the transpose of the camera's view matrix without the translation component and with the x- and z- axes flipped. See getViewMatrix.
Returns Matrix
getNearLimit
-
gets the camera near clipping limit
Returns number
the camera near clipping limit
getPosition
-
gets the camera position
Returns Point3
the camera position
getProjection
-
gets the camera projection
Returns Projection
the camera projection
getProjectionMatrix
getTarget
-
gets the camera target
Returns Point3
the camera target
getUp
-
gets the camera up vector
Returns Point3
the camera up vector
getViewMatrix
getWidth
-
gets the camera width
Returns number
the camera width
setHeight
-
Sets the camera height
Parameters
-
height: number
the new camera height
Returns void
-
setNearLimit
-
Sets the camera near clipping limit
Parameters
-
nearLimit: number
the new camera near clipping limit
Returns void
-
setPosition
-
Sets the camera position
Parameters
-
position: Point3
the new camera position
Returns void
-
setProjection
-
Sets the camera projection
Parameters
-
projection: Projection
the new camera Projection
Returns void
-
setTarget
-
Sets the camera target
Parameters
-
target: Point3
the new camera target
Returns void
-
setUp
-
Sets the camera up vector
Parameters
-
up: Point3
the new camera up vector
Returns void
-
setWidth
-
Sets the camera width
Parameters
-
width: number
the new camera width
Returns void
-
toJson
-
Creates an object ready for JSON serialization.
Returns Object
The prepared object.
transform
Static construct [deprecated]
-
Parameters
-
obj: any
Returns Camera
-
Static create
-
Creates a new camera object with the given parameters.
Parameters
-
pos: Point3
the camera position.
-
tar: Point3
the camera target.
-
up: Point3
the camera up vector.
-
projection: Projection
the camera projection mode.
-
width: number
camea view width.
-
height: number
camera view height.
-
Optional nearLimit: number
the camera near limit.
Returns Camera
a new camera object.
-
Object representing a viewpoint from which the scene can be rendered. More information about using Camera can be found here.