Import
CameraUtils is an addon, and must be imported explicitly, see Installation#Addons.
import * as CameraUtils from 'three/addons/utils/CameraUtils.js';
Methods
.frameCorners( camera : PerspectiveCamera, bottomLeftCorner : Vector3, bottomRightCorner : Vector3, topLeftCorner : Vector3, estimateViewFrustum : boolean ) (inner)
Set projection matrix and the orientation of a perspective camera
to exactly frame the corners of an arbitrary rectangle.
NOTE: This function ignores the standard parameters;
do not call updateProjectionMatrix() after this.
| camera |
The camera. |
| bottomLeftCorner |
The bottom-left corner point. |
| bottomRightCorner |
The bottom-right corner point. |
| topLeftCorner |
The top-left corner point. |
| estimateViewFrustum |
If set to Default is |