Browse Source

Fix docs for CurvePath.getCurveLengths

Andrew 5 years ago
parent
commit
761cae1547

+ 2 - 2
docs/api/en/extras/core/CurvePath.html

@@ -49,8 +49,8 @@
 		<h3>[method:null closePath]()</h3>
 		<h3>[method:null closePath]()</h3>
 		<p>Adds a [page:LineCurve lineCurve] to close the path.</p>
 		<p>Adds a [page:LineCurve lineCurve] to close the path.</p>
 
 
-		<h3>[method:Float getCurveLengths]()</h3>
-		<p>Adds together the lengths of the curves in the [page:.curves] array.</p>
+		<h3>[method:Array getCurveLengths]()</h3>
+		<p>Get list of cumulative curve lengths of the curves in the [page:.curves] array.</p>
 
 
 		<h3>[method:Vector getPoint]( [param:Float t] )</h3>
 		<h3>[method:Vector getPoint]( [param:Float t] )</h3>
 		<p>
 		<p>

+ 1 - 1
docs/api/zh/extras/core/CurvePath.html

@@ -49,7 +49,7 @@
 		<h3>[method:null closePath]()</h3>
 		<h3>[method:null closePath]()</h3>
 		<p>添加一条[page:LineCurve lineCurve]用于闭合路径。</p>
 		<p>添加一条[page:LineCurve lineCurve]用于闭合路径。</p>
 
 
-		<h3>[method:Float getCurveLengths]()</h3>
+		<h3>[method:Array getCurveLengths]()</h3>
 		<p>将[page:.curves]数组中曲线的长度相加。</p>
 		<p>将[page:.curves]数组中曲线的长度相加。</p>
 
 
 		<h3>[method:Vector getPoint]( [param:Float t] )</h3>
 		<h3>[method:Vector getPoint]( [param:Float t] )</h3>