Browse Source

translate curve.html to chinese (#22599)

Peiyu 3 years ago
parent
commit
f1048891d9
1 changed files with 34 additions and 43 deletions
  1. 34 43
      docs/api/zh/extras/core/Curve.html

+ 34 - 43
docs/api/zh/extras/core/Curve.html

@@ -10,8 +10,8 @@
 		<h1>[name]</h1>
 
 		<p class="desc">
-		An abstract base class for creating a [name] object that contains methods for interpolation.
-		For an array of [name]s see [page:CurvePath].
+			用于创建包含插值方法的[name]对象的抽象基类。
+			有关[name]的数组,请参见[page:CurvePath]。
 		</p>
 
 		<h2>Constructor</h2>
@@ -19,102 +19,93 @@
 
 		<h3>[name]()</h3>
 		<p>
-		This constructor creates a new [name].
+		创建一个 [name].
 		</p>
 
-		<h2>Properties</h2>
+		<h2>属性</h2>
 
 		<h3>[property:Integer arcLengthDivisions]</h3>
-		<p>This value determines the amount of divisions when calculating the cumulative segment lengths of a curve via [page:.getLengths].
-			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>
+		<p>确定[page:.GetLength]计算曲线的累积分段长度时的分段量。
+			为确保[page:.getSpacedPoints]等方法时的精度,如果曲线非常大,建议增加[page:.arcLengthDivisions]。默认值为200</p>
 
-		<h2>Methods</h2>
+		<h2>方法</h2>
 
 		<h3>[method:Vector getPoint]( [param:Float t], [param:Vector optionalTarget] )</h3>
 		<p>
-			[page:Float t] - A position on the curve. Must be in the range [ 0, 1 ]. <br>
-			[page:Vector optionalTarget] — (optional) If specified, the result will be copied into this Vector,
-			otherwise a new Vector will be created. <br /><br />
+			[page:Float t] - 曲线上的位置。必须在[0,1]范围内 <br>
+			[page:Vector optionalTarget] — (可选) 如果需要, 结果将复制到此向量中,否则将创建一个新向量。 <br /><br />
 
-			Returns a vector for a given position on the curve.
+			返回曲线上给定位置的点。
 		</p>
 
 		<h3>[method:Vector getPointAt]( [param:Float u], [param:Vector optionalTarget] )</h3>
 		<p>
-			[page:Float u] - A position on the curve according to the arc length. Must be in the range [ 0, 1 ]. <br>
-			[page:Vector optionalTarget] — (optional) If specified, the result will be copied into this Vector,
-			otherwise a new Vector will be created. <br /><br />
+			[page:Float u] - 根据弧长在曲线上的位置。必须在范围[0,1]内。 <br>
+			[page:Vector optionalTarget] — (可选) 如果需要, (可选) 如果需要, 结果将复制到此向量中,否则将创建一个新向量。 <br /><br />
 
-			Returns a vector for a given position on the curve according to the arc length.
+			根据弧长返回曲线上给定位置的点。
 		</p>
 
 		<h3>[method:Array getPoints]( [param:Integer divisions] )</h3>
 		<p>
-			divisions -- number of pieces to divide the curve into. Default is *5*.<br /><br />
-
-			Returns a set of divisions + 1 points using getPoint( t ).
+			divisions -- 要将曲线划分为的分段数。默认是 *5*.<br /><br />
+			使用getPoint(t)返回一组divisions+1的点
 		</p>
 
 		<h3>[method:Array getSpacedPoints]( [param:Integer divisions] )</h3>
 		<p>
-			divisions -- number of pieces to divide the curve into. Default is *5*.<br /><br />
+			divisions -- 要将曲线划分为的分段数。默认是 *5*.<br /><br />
 
-			Returns a set of divisions + 1 equi-spaced points using getPointAt( u ).
+			使用getPointAt(u)返回一个分段+1的等距点的数组。
 		</p>
 
 		<h3>[method:Float getLength]()</h3>
-		<p>Get total curve arc length.</p>
+		<p>获取总曲线弧长。</p>
 
 		<h3>[method:Array getLengths]( [param:Integer divisions] )</h3>
-		<p>Get list of cumulative segment lengths.</p>
+		<p>获取累积段长度的列表。</p>
 
 		<h3>[method:null updateArcLengths]()</h3>
-		<p>Update the cumlative segment distance cache.</p>
+		<p>更新累积段距离缓存。</p>
 
 		<h3>[method:Float getUtoTmapping]( [param:Float u], [param:Float distance] )</h3>
 		<p>
-			Given u in the range ( 0 .. 1 ), returns [page:Float t] also in the range ( 0 .. 1 ).
-			u and t can then be used to give you points which are equidistant from the ends of the curve,
-			using [page:.getPoint].
+			给定范围(0..1)内的u,返回范围(0..1)内的[page:Float t],
+			然后可以用t来使用 [page:.getPoint]给出与曲线末端等距的点。
 		</p>
 
 		<h3>[method:Vector getTangent]( [param:Float t], [param:Vector optionalTarget] )</h3>
 		<p>
-			[page:Float t] - A position on the curve. Must be in the range [ 0, 1 ]. <br>
-			[page:Vector optionalTarget] — (optional) If specified, the result will be copied into this Vector,
-			otherwise a new Vector will be created. <br /><br />
+			[page:Float t] -在曲线上的点,必须在范围 [ 0, 1 ]. <br>
+			[page:Vector optionalTarget] — (可选) 如果需要, (可选) 如果需要, 结果将复制到此向量中,否则将创建一个新向量。 <br /><br />
 
-			Returns a unit vector tangent at t. If the derived curve does not implement its
-			tangent derivation, two points a small delta apart will be used to find its gradient
-			which seems to give a reasonable approximation.
+			返回t处的单位向量切线。如果派生曲线未实现其
+			切线求导,将使用相距一个小三角形的两个点来求与其实际梯度的近似值
 		</p>
 
 		<h3>[method:Vector getTangentAt]( [param:Float u], [param:Vector optionalTarget] )</h3>
 		<p>
-			[page:Float u] - A position on the curve according to the arc length. Must be in the range [ 0, 1 ]. <br>
-			[page:Vector optionalTarget] — (optional) If specified, the result will be copied into this Vector,
-			otherwise a new Vector will be created. <br /><br />
-
-			Returns tangent at a point which is equidistant to the ends of the curve from the
-			point given in [page:.getTangent].
+			[page:Float u] - 根据弧长在曲线上的位置,必须在范围[ 0, 1 ]。 <br>
+			[page:Vector optionalTarget] —(可选) 如果需要, (可选) 如果需要, 结果将复制到此向量中,否则将创建一个新向量。 <br /><br />
+			返回一个点处的切线,该点与 [page:.getTangent]中给定的曲线的端点距离相等
 		</p>
 
 		<h3>[method:Object computeFrenetFrames]( [param:Integer segments], [param:Boolean closed] )</h3>
 		<p>
-		Generates the Frenet Frames. Requires a curve definition in 3D space. Used in geometries like [page:TubeGeometry] or [page:ExtrudeGeometry].
+			生成Frenet帧。需要三维空间中的曲线定义。用于[page:TubeGeometry]或[page:ExtradeGeometry]等几何图形。
 		</p>
 
 		<h3>[method:Curve clone]()</h3>
-		<p>Creates a clone of this instance.</p>
+		<p>创建此实例的克隆。</p>
 
 		<h3>[method:Curve copy]( [param:Curve source] )</h3>
-		<p>Copies another [name] object to this instance.</p>
+		<p>将另一个[name]对象复制到此实例。</p>
 
 		<h3>[method:Object toJSON]()</h3>
-		<p>Returns a JSON object representation of this instance.</p>
+		<p>返回此实例的JSON对象表示形式。</p>
 
 		<h3>[method:Curve fromJSON]( [param:Object json] )</h3>
-		<p>Copies the data from the given JSON object to this instance.</p>
+		<p>将给定的JSON数据复制到此实例。</p>
 
 		<h2>Source</h2>