|
@@ -13,63 +13,59 @@
|
|
|
<h1>[name]</h1>
|
|
|
|
|
|
<p class="desc">
|
|
|
- Abstract base class for cameras. This class should always be inherited when you build a new camera.
|
|
|
+ 摄像机的抽象基类,你创建一个摄像机总会继承这个类。
|
|
|
</p>
|
|
|
|
|
|
|
|
|
- <h2>Constructor</h2>
|
|
|
+ <h2>构造器</h2>
|
|
|
|
|
|
|
|
|
<h3>[name]()</h3>
|
|
|
<p>
|
|
|
- Creates a new [name]. Note that this class is not intended to be called directly;
|
|
|
- you probably want a [page:PerspectiveCamera] or [page:OrthographicCamera] instead.
|
|
|
+ 创建一个新的[name](摄像机)。注意:这个类并不是被直接调用的;你所想要的或许是一个 [page:PerspectiveCamera](透视摄像机)或者 [page:OrthographicCamera](正交摄像机)。
|
|
|
</p>
|
|
|
|
|
|
|
|
|
- <h2>Properties</h2>
|
|
|
- <p>See the base [page:Object3D] class for common properties.</p>
|
|
|
+ <h2>属性</h2>
|
|
|
+ <p>请参阅其基类[page:Object3D]来查看共有属性。</p>
|
|
|
|
|
|
<h3>[property:Boolean isCamera]</h3>
|
|
|
<p>
|
|
|
- Used to check whether this or derived classes are cameras. Default is *true*.<br /><br />
|
|
|
+ 用于来检查这个类或者派生的类是否为摄像机,默认为*true*。
|
|
|
+ <br /><br />
|
|
|
|
|
|
- You should not change this, as it used internally by the renderer for optimisation.
|
|
|
+ 你不应当对这个属性进行改变,因为它在内部由渲染器使用,以用于优化。
|
|
|
</p>
|
|
|
|
|
|
<h3>[property:Layers layers]</h3>
|
|
|
<p>
|
|
|
- The [page:Layers layers] that the camera is a member of. This is an inherited
|
|
|
- property from [page:Object3D].<br /><br />
|
|
|
-
|
|
|
- Objects must share at least one layer with the camera to be seen
|
|
|
- when the camera's viewpoint is rendered.
|
|
|
+ 摄像机是一个[page:Layers layers]的成员. 这是一个从[page:Object3D]继承而来的属性。<br /><br />
|
|
|
+ 当摄像机的视点被渲染的时候,物体必须和当前被看到的摄像机共享至少一个层。
|
|
|
</p>
|
|
|
|
|
|
<h3>[property:Matrix4 matrixWorldInverse]</h3>
|
|
|
<p>
|
|
|
- This is the inverse of matrixWorld. MatrixWorld contains the Matrix which has
|
|
|
- the world transform of the Camera.
|
|
|
+ 这是matrixWorld矩阵的逆矩阵。 MatrixWorld包含了相机的世界变换矩阵。
|
|
|
</p>
|
|
|
|
|
|
<h3>[property:Matrix4 projectionMatrix]</h3>
|
|
|
- <p>This is the matrix which contains the projection.</p>
|
|
|
+ <p>这是投影变换矩阵。</p>
|
|
|
|
|
|
<h3>[property:Matrix4 projectionMatrixInverse]</h3>
|
|
|
- <p>The inverse of projectionMatrix.</p>
|
|
|
+ <p>这是投影变换矩阵的逆矩阵。</p>
|
|
|
|
|
|
|
|
|
- <h2>Methods</h2>
|
|
|
- <p>See the base [page:Object3D] class for common methods.</p>
|
|
|
+ <h2>方法</h2>
|
|
|
+ <p>请参阅其基类[page:Object3D]来查看其共有方法。</p>
|
|
|
|
|
|
<h3>[method:Camera clone]( )</h3>
|
|
|
<p>
|
|
|
- Return a new camera with the same properties as this one.
|
|
|
+ 返回一个具有和当前相机的属性一样的新的相机。
|
|
|
</p>
|
|
|
|
|
|
<h3>[method:Camera copy]( [param:Camera source], [param:Boolean recursive] )</h3>
|
|
|
<p>
|
|
|
- Copy the properties from the source camera into this one.
|
|
|
+ 将源摄像机的属性复制到新摄像机中。
|
|
|
</p>
|
|
|
|
|
|
<h3>[method:Vector3 getWorldDirection]( [param:Vector3 target] )</h3>
|