|
@@ -12,13 +12,13 @@
|
|
|
|
|
|
<h1>[name]</h1>
|
|
|
|
|
|
- <p class="desc">This helper displays the directional cone of a [page:PositionalAudio].</p>
|
|
|
+ <p class="desc">这一辅助对象显示[page:PositionalAudio]的方向锥。</p>
|
|
|
|
|
|
- <h2>Example</h2>
|
|
|
+ <h2>示例</h2>
|
|
|
|
|
|
<div>[example:webaudio_orientation webaudio / orientation ]</div>
|
|
|
|
|
|
- <h2>Code Example</h2>
|
|
|
+ <h2>示例代码</h2>
|
|
|
<code>
|
|
|
var positionalAudio = new THREE.PositionalAudio( listener );
|
|
|
positionalAudio.setDirectionalCone( 180, 230, 0.1 );
|
|
@@ -28,45 +28,45 @@ positionalAudio.add( helper );
|
|
|
</code>
|
|
|
|
|
|
|
|
|
- <h2>Constructor</h2>
|
|
|
+ <h2>构造函数</h2>
|
|
|
|
|
|
<h3>[name]( [param:PositionalAudio audio], [param:Number range] )</h3>
|
|
|
<p>
|
|
|
- [page:PositionalAudio audio] -- The [page:PositionalAudio] to be visualized. <br /><br/>
|
|
|
+ [page:PositionalAudio audio] -- 将会被可视化的[page:PositionalAudio]。<br /><br/>
|
|
|
|
|
|
- [page:Number range] -- (optional) The range of the directional cone. <br /><br/>
|
|
|
+ [page:Number range] -- (可选)方向锥的范围。<br /><br/>
|
|
|
|
|
|
- [page:Number divisionsInnerAngle] -- (optional) The amount of divisions of the inner part of the directional cone. <br /><br/>
|
|
|
+ [page:Number divisionsInnerAngle] -- (可选)方向锥内侧部分的分段数。<br /><br/>
|
|
|
|
|
|
- [page:Number divisionsOuterAngle] -- (optional) The amount of divisions of the outer part of the directional cone. <br /><br/>
|
|
|
+ [page:Number divisionsOuterAngle] -- (可选)方向锥外侧部分的分段数。<br /><br/>
|
|
|
</p>
|
|
|
|
|
|
|
|
|
- <h2>Properties</h2>
|
|
|
- <p>See the base [page:Object3D] class for common properties.</p>
|
|
|
+ <h2>属性</h2>
|
|
|
+ <p>请参阅其基类[page:Object3D]来了解共有属性。</p>
|
|
|
|
|
|
<h3>[property:PositionalAudio audio]</h3>
|
|
|
- <p>[page:PositionalAudio] to be visualized.</p>
|
|
|
+ <p>将会被可视化的[page:PositionalAudio]。</p>
|
|
|
|
|
|
<h3>[property:Number range]</h3>
|
|
|
- <p>The range of the directional cone.</p>
|
|
|
+ <p>方向锥的范围。</p>
|
|
|
|
|
|
<h3>[property:Number divisionsInnerAngle]</h3>
|
|
|
- <p>The amount of divisions of the inner part of the directional cone.</p>
|
|
|
+ <p>方向锥内侧部分的分段数。</p>
|
|
|
|
|
|
<h3>[property:Number divisionsOuterAngle]</h3>
|
|
|
- <p>The amount of divisions of the outer part of the directional cone.</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:null dispose]()</h3>
|
|
|
- <p>Disposes of the helper.</p>
|
|
|
+ <p>废置这一辅助对象。</p>
|
|
|
|
|
|
<h3>[method:null update]()</h3>
|
|
|
- <p>Updates the helper.</p>
|
|
|
+ <p>更新这一辅助对象。</p>
|
|
|
|
|
|
- <h2>Source</h2>
|
|
|
+ <h2>源代码</h2>
|
|
|
|
|
|
[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
|
|
|
</body>
|