Skip to content

Commit f104889

Browse files
authored
translate curve.html to chinese (#22599)
1 parent def04db commit f104889

File tree

1 file changed

+34
-43
lines changed

1 file changed

+34
-43
lines changed

docs/api/zh/extras/core/Curve.html

Lines changed: 34 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -10,111 +10,102 @@
1010
<h1>[name]</h1>
1111

1212
<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]
1515
</p>
1616

1717
<h2>Constructor</h2>
1818

1919

2020
<h3>[name]()</h3>
2121
<p>
22-
This constructor creates a new [name].
22+
创建一个 [name].
2323
</p>
2424

25-
<h2>Properties</h2>
25+
<h2>属性</h2>
2626

2727
<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>
3030

31-
<h2>Methods</h2>
31+
<h2>方法</h2>
3232

3333
<h3>[method:Vector getPoint]( [param:Float t], [param:Vector optionalTarget] )</h3>
3434
<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 />
3837

39-
Returns a vector for a given position on the curve.
38+
返回曲线上给定位置的点。
4039
</p>
4140

4241
<h3>[method:Vector getPointAt]( [param:Float u], [param:Vector optionalTarget] )</h3>
4342
<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 />
4745

48-
Returns a vector for a given position on the curve according to the arc length.
46+
根据弧长返回曲线上给定位置的点。
4947
</p>
5048

5149
<h3>[method:Array getPoints]( [param:Integer divisions] )</h3>
5250
<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的点
5653
</p>
5754

5855
<h3>[method:Array getSpacedPoints]( [param:Integer divisions] )</h3>
5956
<p>
60-
divisions -- number of pieces to divide the curve into. Default is *5*.<br /><br />
57+
divisions -- 要将曲线划分为的分段数。默认是 *5*.<br /><br />
6158

62-
Returns a set of divisions + 1 equi-spaced points using getPointAt( u ).
59+
使用getPointAt(u)返回一个分段+1的等距点的数组。
6360
</p>
6461

6562
<h3>[method:Float getLength]()</h3>
66-
<p>Get total curve arc length.</p>
63+
<p>获取总曲线弧长。</p>
6764

6865
<h3>[method:Array getLengths]( [param:Integer divisions] )</h3>
69-
<p>Get list of cumulative segment lengths.</p>
66+
<p>获取累积段长度的列表。</p>
7067

7168
<h3>[method:null updateArcLengths]()</h3>
72-
<p>Update the cumlative segment distance cache.</p>
69+
<p>更新累积段距离缓存。</p>
7370

7471
<h3>[method:Float getUtoTmapping]( [param:Float u], [param:Float distance] )</h3>
7572
<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]给出与曲线末端等距的点。
7975
</p>
8076

8177
<h3>[method:Vector getTangent]( [param:Float t], [param:Vector optionalTarget] )</h3>
8278
<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 />
8681

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+
切线求导,将使用相距一个小三角形的两个点来求与其实际梯度的近似值
9084
</p>
9185

9286
<h3>[method:Vector getTangentAt]( [param:Float u], [param:Vector optionalTarget] )</h3>
9387
<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]中给定的曲线的端点距离相等
10091
</p>
10192

10293
<h3>[method:Object computeFrenetFrames]( [param:Integer segments], [param:Boolean closed] )</h3>
10394
<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]等几何图形。
10596
</p>
10697

10798
<h3>[method:Curve clone]()</h3>
108-
<p>Creates a clone of this instance.</p>
99+
<p>创建此实例的克隆。</p>
109100

110101
<h3>[method:Curve copy]( [param:Curve source] )</h3>
111-
<p>Copies another [name] object to this instance.</p>
102+
<p>将另一个[name]对象复制到此实例。</p>
112103

113104
<h3>[method:Object toJSON]()</h3>
114-
<p>Returns a JSON object representation of this instance.</p>
105+
<p>返回此实例的JSON对象表示形式。</p>
115106

116107
<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>
118109

119110
<h2>Source</h2>
120111

0 commit comments

Comments
 (0)