Skip to content

Commit

Permalink
Merge pull request #18593 from gonnavis/CurvePath_getPoint
Browse files Browse the repository at this point in the history
Docs: CurvePath overwrited Curve's getPoints, getSpacedPoints default value.
mrdoob authored Feb 10, 2020
2 parents b1998fc + a814bf0 commit 93f4924
Showing 2 changed files with 26 additions and 0 deletions.
13 changes: 13 additions & 0 deletions docs/api/en/extras/core/CurvePath.html
Original file line number Diff line number Diff line change
@@ -51,7 +51,20 @@ <h3>[method:null closePath]()</h3>

<h3>[method:Float getCurveLengths]()</h3>
<p>Adds together the lengths of the curves in the [page:.curves] array.</p>

<h3>[method:Array getPoints]( [param:Integer divisions] )</h3>
<p>
divisions -- number of pieces to divide the curve into. Default is *12*.<br /><br />

Returns a set of divisions + 1 points using getPoint( t ).
</p>

<h3>[method:Array getSpacedPoints]( [param:Integer divisions] )</h3>
<p>
divisions -- number of pieces to divide the curve into. Default is *40*.<br /><br />

Returns a set of divisions + 1 equi-spaced points using getPointAt( u ).
</p>

<h2>Source</h2>

13 changes: 13 additions & 0 deletions docs/api/zh/extras/core/CurvePath.html
Original file line number Diff line number Diff line change
@@ -52,6 +52,19 @@ <h3>[method:null closePath]()</h3>
<h3>[method:Float getCurveLengths]()</h3>
<p>将[page:.curves]数组中曲线的长度相加。</p>

<h3>[method:Array getPoints]( [param:Integer divisions] )</h3>
<p>
divisions -- 曲线分段数量。默认值为*12*。<br /><br />

返回一组使用getPoint( t )获得的divisions + 1个点。
</p>

<h3>[method:Array getSpacedPoints]( [param:Integer divisions] )</h3>
<p>
divisions -- 曲线分段数量。默认值为*40*。<br /><br />

返回一组使用getPointAt( u )获得的divisions + 1个均分点。
</p>

<h2>源代码</h2>

0 comments on commit 93f4924

Please sign in to comment.