|
10 | 10 | <h1>[name]</h1> |
11 | 11 |
|
12 | 12 | <p class="desc"> |
13 | | - An abstract base class for creating a [name] object that contains methods for interpolation. |
14 | | - For an array of [name]s see [page:CurvePath]. |
| 13 | + 用于创建包含插值方法的[name]对象的抽象基类。 |
| 14 | + 有关[name]的数组,请参见[page:CurvePath]。 |
15 | 15 | </p> |
16 | 16 |
|
17 | 17 | <h2>Constructor</h2> |
18 | 18 |
|
19 | 19 |
|
20 | 20 | <h3>[name]()</h3> |
21 | 21 | <p> |
22 | | - This constructor creates a new [name]. |
| 22 | + 创建一个 [name]. |
23 | 23 | </p> |
24 | 24 |
|
25 | | - <h2>Properties</h2> |
| 25 | + <h2>属性</h2> |
26 | 26 |
|
27 | 27 | <h3>[property:Integer arcLengthDivisions]</h3> |
28 | | - <p>This value determines the amount of divisions when calculating the cumulative segment lengths of a curve via [page:.getLengths]. |
29 | | - To ensure precision when using methods like [page:.getSpacedPoints], it is recommended to increase [page:.arcLengthDivisions] if the curve is very large. Default is 200.</p> |
| 28 | + <p>确定[page:.GetLength]计算曲线的累积分段长度时的分段量。 |
| 29 | + 为确保[page:.getSpacedPoints]等方法时的精度,如果曲线非常大,建议增加[page:.arcLengthDivisions]。默认值为200</p> |
30 | 30 |
|
31 | | - <h2>Methods</h2> |
| 31 | + <h2>方法</h2> |
32 | 32 |
|
33 | 33 | <h3>[method:Vector getPoint]( [param:Float t], [param:Vector optionalTarget] )</h3> |
34 | 34 | <p> |
35 | | - [page:Float t] - A position on the curve. Must be in the range [ 0, 1 ]. <br> |
36 | | - [page:Vector optionalTarget] — (optional) If specified, the result will be copied into this Vector, |
37 | | - otherwise a new Vector will be created. <br /><br /> |
| 35 | + [page:Float t] - 曲线上的位置。必须在[0,1]范围内 <br> |
| 36 | + [page:Vector optionalTarget] — (可选) 如果需要, 结果将复制到此向量中,否则将创建一个新向量。 <br /><br /> |
38 | 37 |
|
39 | | - Returns a vector for a given position on the curve. |
| 38 | + 返回曲线上给定位置的点。 |
40 | 39 | </p> |
41 | 40 |
|
42 | 41 | <h3>[method:Vector getPointAt]( [param:Float u], [param:Vector optionalTarget] )</h3> |
43 | 42 | <p> |
44 | | - [page:Float u] - A position on the curve according to the arc length. Must be in the range [ 0, 1 ]. <br> |
45 | | - [page:Vector optionalTarget] — (optional) If specified, the result will be copied into this Vector, |
46 | | - otherwise a new Vector will be created. <br /><br /> |
| 43 | + [page:Float u] - 根据弧长在曲线上的位置。必须在范围[0,1]内。 <br> |
| 44 | + [page:Vector optionalTarget] — (可选) 如果需要, (可选) 如果需要, 结果将复制到此向量中,否则将创建一个新向量。 <br /><br /> |
47 | 45 |
|
48 | | - Returns a vector for a given position on the curve according to the arc length. |
| 46 | + 根据弧长返回曲线上给定位置的点。 |
49 | 47 | </p> |
50 | 48 |
|
51 | 49 | <h3>[method:Array getPoints]( [param:Integer divisions] )</h3> |
52 | 50 | <p> |
53 | | - divisions -- number of pieces to divide the curve into. Default is *5*.<br /><br /> |
54 | | - |
55 | | - Returns a set of divisions + 1 points using getPoint( t ). |
| 51 | + divisions -- 要将曲线划分为的分段数。默认是 *5*.<br /><br /> |
| 52 | + 使用getPoint(t)返回一组divisions+1的点 |
56 | 53 | </p> |
57 | 54 |
|
58 | 55 | <h3>[method:Array getSpacedPoints]( [param:Integer divisions] )</h3> |
59 | 56 | <p> |
60 | | - divisions -- number of pieces to divide the curve into. Default is *5*.<br /><br /> |
| 57 | + divisions -- 要将曲线划分为的分段数。默认是 *5*.<br /><br /> |
61 | 58 |
|
62 | | - Returns a set of divisions + 1 equi-spaced points using getPointAt( u ). |
| 59 | + 使用getPointAt(u)返回一个分段+1的等距点的数组。 |
63 | 60 | </p> |
64 | 61 |
|
65 | 62 | <h3>[method:Float getLength]()</h3> |
66 | | - <p>Get total curve arc length.</p> |
| 63 | + <p>获取总曲线弧长。</p> |
67 | 64 |
|
68 | 65 | <h3>[method:Array getLengths]( [param:Integer divisions] )</h3> |
69 | | - <p>Get list of cumulative segment lengths.</p> |
| 66 | + <p>获取累积段长度的列表。</p> |
70 | 67 |
|
71 | 68 | <h3>[method:null updateArcLengths]()</h3> |
72 | | - <p>Update the cumlative segment distance cache.</p> |
| 69 | + <p>更新累积段距离缓存。</p> |
73 | 70 |
|
74 | 71 | <h3>[method:Float getUtoTmapping]( [param:Float u], [param:Float distance] )</h3> |
75 | 72 | <p> |
76 | | - Given u in the range ( 0 .. 1 ), returns [page:Float t] also in the range ( 0 .. 1 ). |
77 | | - u and t can then be used to give you points which are equidistant from the ends of the curve, |
78 | | - using [page:.getPoint]. |
| 73 | + 给定范围(0..1)内的u,返回范围(0..1)内的[page:Float t], |
| 74 | + 然后可以用t来使用 [page:.getPoint]给出与曲线末端等距的点。 |
79 | 75 | </p> |
80 | 76 |
|
81 | 77 | <h3>[method:Vector getTangent]( [param:Float t], [param:Vector optionalTarget] )</h3> |
82 | 78 | <p> |
83 | | - [page:Float t] - A position on the curve. Must be in the range [ 0, 1 ]. <br> |
84 | | - [page:Vector optionalTarget] — (optional) If specified, the result will be copied into this Vector, |
85 | | - otherwise a new Vector will be created. <br /><br /> |
| 79 | + [page:Float t] -在曲线上的点,必须在范围 [ 0, 1 ]. <br> |
| 80 | + [page:Vector optionalTarget] — (可选) 如果需要, (可选) 如果需要, 结果将复制到此向量中,否则将创建一个新向量。 <br /><br /> |
86 | 81 |
|
87 | | - Returns a unit vector tangent at t. If the derived curve does not implement its |
88 | | - tangent derivation, two points a small delta apart will be used to find its gradient |
89 | | - which seems to give a reasonable approximation. |
| 82 | + 返回t处的单位向量切线。如果派生曲线未实现其 |
| 83 | + 切线求导,将使用相距一个小三角形的两个点来求与其实际梯度的近似值 |
90 | 84 | </p> |
91 | 85 |
|
92 | 86 | <h3>[method:Vector getTangentAt]( [param:Float u], [param:Vector optionalTarget] )</h3> |
93 | 87 | <p> |
94 | | - [page:Float u] - A position on the curve according to the arc length. Must be in the range [ 0, 1 ]. <br> |
95 | | - [page:Vector optionalTarget] — (optional) If specified, the result will be copied into this Vector, |
96 | | - otherwise a new Vector will be created. <br /><br /> |
97 | | - |
98 | | - Returns tangent at a point which is equidistant to the ends of the curve from the |
99 | | - point given in [page:.getTangent]. |
| 88 | + [page:Float u] - 根据弧长在曲线上的位置,必须在范围[ 0, 1 ]。 <br> |
| 89 | + [page:Vector optionalTarget] —(可选) 如果需要, (可选) 如果需要, 结果将复制到此向量中,否则将创建一个新向量。 <br /><br /> |
| 90 | + 返回一个点处的切线,该点与 [page:.getTangent]中给定的曲线的端点距离相等 |
100 | 91 | </p> |
101 | 92 |
|
102 | 93 | <h3>[method:Object computeFrenetFrames]( [param:Integer segments], [param:Boolean closed] )</h3> |
103 | 94 | <p> |
104 | | - Generates the Frenet Frames. Requires a curve definition in 3D space. Used in geometries like [page:TubeGeometry] or [page:ExtrudeGeometry]. |
| 95 | + 生成Frenet帧。需要三维空间中的曲线定义。用于[page:TubeGeometry]或[page:ExtradeGeometry]等几何图形。 |
105 | 96 | </p> |
106 | 97 |
|
107 | 98 | <h3>[method:Curve clone]()</h3> |
108 | | - <p>Creates a clone of this instance.</p> |
| 99 | + <p>创建此实例的克隆。</p> |
109 | 100 |
|
110 | 101 | <h3>[method:Curve copy]( [param:Curve source] )</h3> |
111 | | - <p>Copies another [name] object to this instance.</p> |
| 102 | + <p>将另一个[name]对象复制到此实例。</p> |
112 | 103 |
|
113 | 104 | <h3>[method:Object toJSON]()</h3> |
114 | | - <p>Returns a JSON object representation of this instance.</p> |
| 105 | + <p>返回此实例的JSON对象表示形式。</p> |
115 | 106 |
|
116 | 107 | <h3>[method:Curve fromJSON]( [param:Object json] )</h3> |
117 | | - <p>Copies the data from the given JSON object to this instance.</p> |
| 108 | + <p>将给定的JSON数据复制到此实例。</p> |
118 | 109 |
|
119 | 110 | <h2>Source</h2> |
120 | 111 |
|
|
0 commit comments