|
@@ -1,5 +1,5 @@
|
|
|
<!DOCTYPE html>
|
|
|
-<html lang="en">
|
|
|
+<html lang="zh">
|
|
|
<head>
|
|
|
<meta charset="utf-8" />
|
|
|
<base href="../../../" />
|
|
@@ -12,10 +12,10 @@
|
|
|
|
|
|
<h1>[name]</h1>
|
|
|
|
|
|
- <p class="desc">An 3D arrow object for visualizing directions.</p>
|
|
|
+ <p class="desc">用于模拟方向的3维箭头对象.</p>
|
|
|
|
|
|
|
|
|
- <h2>Example</h2>
|
|
|
+ <h2>例子</h2>
|
|
|
|
|
|
<div>[example:webgl_geometries WebGL / geometries]</div>
|
|
|
<div>[example:webgl_geometry_normals WebGL / geometry / normals]</div>
|
|
@@ -37,61 +37,61 @@
|
|
|
|
|
|
|
|
|
|
|
|
- <h2>Constructor</h2>
|
|
|
+ <h2>构造函数</h2>
|
|
|
|
|
|
|
|
|
<h3>[name]([param:Vector3 dir], [param:Vector3 origin], [param:Number length], [param:Number hex], [param:Number headLength], [param:Number headWidth] )</h3>
|
|
|
<p>
|
|
|
- [page:Vector3 dir] -- direction from origin. Must be a unit vector. <br />
|
|
|
- [page:Vector3 origin] -- Point at which the arrow starts.<br />
|
|
|
- [page:Number length] -- length of the arrow. Default is *1*.<br />
|
|
|
- [page:Number hex] -- hexadecimal value to define color. Default is 0xffff00.<br />
|
|
|
- [page:Number headLength] -- The length of the head of the arrow. Default is 0.2 * length.<br />
|
|
|
- [page:Number headWidth] -- The length of the width of the arrow. Default is 0.2 * headLength.
|
|
|
+ [page:Vector3 dir] -- 基于箭头原点的方向. 必须为单位向量. <br />
|
|
|
+ [page:Vector3 origin] -- 箭头的原点.<br />
|
|
|
+ [page:Number length] -- 箭头的长度. 默认为 *1*.<br />
|
|
|
+ [page:Number hex] -- 定义的16进制颜色值. 默认为 0xffff00.<br />
|
|
|
+ [page:Number headLength] -- 箭头头部(锥体)的长度. 默认为箭头长度的0.2倍(0.2 * length).<br />
|
|
|
+ [page:Number headWidth] -- 箭头的宽度. 默认为箭头头部(锥体)长度的0.2倍(0.2 * headLength).
|
|
|
</p>
|
|
|
|
|
|
- <h2>Properties</h2>
|
|
|
- <p>See the base [page:Object3D] class for common properties.</p>
|
|
|
+ <h2>属性</h2>
|
|
|
+ <p>请到基类 [page:Object3D] 页面查看公共属性.</p>
|
|
|
|
|
|
|
|
|
<h3>[property:Line line]</h3>
|
|
|
- <p>Contains the line part of the arrowHelper.</p>
|
|
|
+ <p>包含箭头辅助对象的线段部分.</p>
|
|
|
|
|
|
<h3>[property:Mesh cone]</h3>
|
|
|
- <p>Contains the cone part of the arrowHelper.</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 setColor]([param:Number hex])</h3>
|
|
|
<p>
|
|
|
- hex -- The hexadecimal value of the color.<br /><br />
|
|
|
+ hex -- 16进制颜色值.<br /><br />
|
|
|
|
|
|
- Sets the color of the arrowHelper.
|
|
|
+ 设置箭头辅助对象的颜色.
|
|
|
</p>
|
|
|
|
|
|
<h3>[method:null setLength]([param:Number length], [param:Number headLength], [param:Number headWidth])</h3>
|
|
|
<p>
|
|
|
- length -- The desired length.<br />
|
|
|
- headLength -- The length of the head of the arrow.<br />
|
|
|
- headWidth -- The length of the width of the arrow.<br /><br />
|
|
|
+ length -- 要设置的长度.<br />
|
|
|
+ headLength -- 要设置的箭头头部(锥体)的长度.<br />
|
|
|
+ headWidth -- 要设置的箭头的宽度.<br /><br />
|
|
|
|
|
|
- Sets the length of the arrowhelper.
|
|
|
+ 设置箭头辅助对象的长度.
|
|
|
</p>
|
|
|
|
|
|
<h3>[method:null setDirection]([param:Vector3 dir])</h3>
|
|
|
<p>
|
|
|
- dir -- The desired direction. Must be a unit vector.<br /><br />
|
|
|
+ dir -- 要设置的方向. 必须为单位向量.<br /><br />
|
|
|
|
|
|
- Sets the direction of the arrowhelper.
|
|
|
+ 设置箭头辅助对象的方向.
|
|
|
</p>
|
|
|
|
|
|
- <h2>Source</h2>
|
|
|
+ <h2>源码</h2>
|
|
|
|
|
|
[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
|
|
|
</body>
|