相机工具([name])

包含用于相机操作的有用实用函数的类。

导入

[name] 是一个附加组件,必须显式导入。请参阅 [link:#manual/introduction/Installation Installation / Addons].

import * as CameraUtils from 'three/addons/utils/CameraUtils.js';

方法

[method:undefined frameCorners]( [param:PerspectiveCamera camera], [param:Vector3 bottomLeftCorner], [param:Vector3 bottomRightCorner], [param:Vector3 topLeftCorner], [param:boolean estimateViewFrustum] )

使用 [link:https://web.archive.org/web/20191110002841/http://csc.lsu.edu/~kooima/articles/genperspective/index.html Kooima 广义透视投影公式]. 注意:此功能忽略标准参数;在此之后不要调用 updateProjectionMatrix() ! toJSON也不会捕获此函数生成的离轴矩阵。

源代码

[link:https://github.com/mrdoob/three.js/blob/master/examples/jsm/utils/CameraUtils.js examples/jsm/utils/CameraUtils.js]