未验证 提交 eca8e552 编写于 作者: M Mr.doob 提交者: GitHub

Merge pull request #18921 from Mugen87/dev48

Docs: Clean up.
......@@ -51,7 +51,21 @@
<h3>[method:Float getCurveLengths]()</h3>
<p>Adds together the lengths of the curves in the [page:.curves] array.</p>
<h3>[method:Vector getPoint]( [param:Float t] )</h3>
<p>
[page:Float t] - A position on the curve. Must be in the range [ 0, 1 ]. <br><br />
Returns a vector for a given position on the curve path.
</p>
<h3>[method:Vector getPointAt]( [param:Float u] )</h3>
<p>
[page:Float u] - A position on the curve according to the arc length. Must be in the range [ 0, 1 ]. <br><br />
Returns a vector for a given position on the curve path 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 *12*.<br /><br />
......
......@@ -13,7 +13,7 @@
<h1>曲线路径([name])</h1>
<p class="desc">
一个扩展了[page:Curve]的抽象基类。CurvePath仅仅是一个已连接的曲线的数组,但保留了曲线的API。
</p>
......@@ -52,6 +52,20 @@
<h3>[method:Float getCurveLengths]()</h3>
<p>将[page:.curves]数组中曲线的长度相加。</p>
<h3>[method:Vector getPoint]( [param:Float t] )</h3>
<p>
[page:Float t] - A position on the curve. Must be in the range [ 0, 1 ]. <br><br />
Returns a vector for a given position on the curve path.
</p>
<h3>[method:Vector getPointAt]( [param:Float u] )</h3>
<p>
[page:Float u] - A position on the curve according to the arc length. Must be in the range [ 0, 1 ]. <br><br />
Returns a vector for a given position on the curve path according to the arc length.
</p>
<h3>[method:Array getPoints]( [param:Integer divisions] )</h3>
<p>
divisions -- 曲线分段数量。默认值为*12*。<br /><br />
......
......@@ -13,6 +13,7 @@ export class CurvePath<T extends Vector> extends Curve<T> {
checkConnection(): boolean;
closePath(): void;
getPoint( t: number ): T;
getPointAt( t: number ): T;
getLength(): number;
updateArcLengths(): void;
getCurveLengths(): number[];
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册