Skip to content

Commit f2206fb

Browse files
authored
Merge pull request #7997 from shawdm/dev-2.0-curves-docs-fix
Documentation fix for swapped parameters in splinePoint and bezierPoint
2 parents b858de8 + 3e43484 commit f2206fb

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/shape/curves.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -237,10 +237,10 @@ function curves(p5, fn){
237237
* between them.
238238
*
239239
* @method bezierPoint
240-
* @param {Number} a coordinate of first control point.
241-
* @param {Number} b coordinate of first anchor point.
242-
* @param {Number} c coordinate of second anchor point.
243-
* @param {Number} d coordinate of second control point.
240+
* @param {Number} a coordinate of first anchor point.
241+
* @param {Number} b coordinate of first control point.
242+
* @param {Number} c coordinate of second control point.
243+
* @param {Number} d coordinate of second anchor point.
244244
* @param {Number} t amount to interpolate between 0 and 1.
245245
* @return {Number} coordinate of the point on the curve.
246246
*
@@ -684,10 +684,10 @@ function curves(p5, fn){
684684
* between them.
685685
*
686686
* @method splinePoint
687-
* @param {Number} a coordinate of first anchor point.
688-
* @param {Number} b coordinate of first control point.
689-
* @param {Number} c coordinate of second control point.
690-
* @param {Number} d coordinate of second anchor point.
687+
* @param {Number} a coordinate of first control point.
688+
* @param {Number} b coordinate of first anchor point.
689+
* @param {Number} c coordinate of second anchor point.
690+
* @param {Number} d coordinate of second control point.
691691
* @param {Number} t amount to interpolate between 0 and 1.
692692
* @return {Number} coordinate of a point on the curve.
693693
*

0 commit comments

Comments
 (0)