OrthographicCamera constructor
OrthographicCameraParams used to create our OrthographicCamera.
The universal unique id of the Camera.
Matrices object of the Camera.
Optional
onCallback to execute when one of the camera matrices changed.
A number representing what CSS perspective value (in pixel) should be used to obtain the same perspective effect as this Camera. Useful only with PerspectiveCamera.
An object containing the visible width / height at a given z-depth from our camera parameters.
Transformation object of the Object3D
Vec3 holding the actual position of this Object3D from its worldMatrix.
Children Object3D in the scene graph, used to compute their own worldMatrix.
Whether at least one of this Object3D matrix needs an update.
Get the near plane value.
Set the near plane value. Update the projectionMatrix only if the near plane actually changed.
New near plane value.
Get the far plane value.
Set the far plane value. Update projectionMatrix only if the far plane actually changed.
New far plane value.
Get the pixelRatio value.
Set the pixelRatio value. Update the CSSPerspective only if the pixel ratio actually changed.
New pixel ratio value.
Get the left frustum plane value.
Set the left frustum plane value. Update the projectionMatrix only if the value actually changed.
New left frustum plane value.
Get the right frustum plane value.
Set the right frustum plane value. Update the projectionMatrix only if the value actually changed.
New right frustum plane value.
Get the top frustum plane value.
Set the top frustum plane value. Update the projectionMatrix only if the value actually changed.
New top frustum plane value.
Get the bottom frustum plane value.
Set the bottom frustum plane value. Update the projectionMatrix only if the value actually changed.
New bottom frustum plane value.
Get the current OrthographicCamera frustum planes in the [left, right, top, bottom, near, far] order.
Get our quaternion
Set our quaternion
new quaternion
Get our model matrix
Set our model matrix
new model matrix
Get our world matrix
Set our world matrix
new world matrix
Callback to run when the camera model matrix has been updated.
Sets the OrthographicCamera orthographic projection settings. Update the projectionMatrix if needed.
OrthographicCameraOptions to use for the orthographic projection.
Get visible width / height at a given z-depth from our OrthographicCamera parameters.
Depth to use for calculations - unused since width and height does not change according to depth in orthographic projection.
Updates the OrthographicCamera projectionMatrix.
Set our transforms properties and vectors onChange callbacks
Apply our rotation and tell our model matrix to update
Tell our model matrix to update
Tell our model matrix to update
Tell our model matrix to update
Set our model matrix shouldUpdate flag to true (tell it to update)
Update our model matrix.
Whether to update the parent worldMatrix beforehand. Default to false
.
Whether to update the children worldMatrix afterward. Default to true
.
Destroy this Object3D. Removes its parent and set its children free.
Used as a base class to create a Camera.
This class is not made to be used directly, you should use the PerspectiveCamera or OrthographicCamera classes instead.