# curvePoint() documentation?

**URL:** <https://discourse.processing.org/t/curvepoint-documentation/5601>\
**Category:** p5.js\
**Created:** [November 16, 2018, 1:26pm UTC](https://discourse.processing.org/t/curvepoint-documentation/5601 "2018-11-16T13:26:47Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mzed](https://avatars.discourse-cdn.com/v4/letter/m/c6cbf5/32.png) [@mzed](https://discourse.processing.org/u/mzed)\
**Post date:** [November 16, 2018, 1:26pm UTC](https://discourse.processing.org/t/curvepoint-documentation/5601/1 "2018-11-16T13:26:47Z")

</div>

I’m pretty sure that the documentation for the `curvePoint()` function in p5.js is wrong. Am I crazy?

It is here:  
[https://p5js.org/reference/#/p5/curvePoint](https://p5js.org/reference/#/p5/curvePoint)

I think the parameters should be:

#### Parameters

`a` Number: coordinate of first _control point_  
`b` Number: coordinate of first point on the curve  
`c` Number: coordinate of second point on the curve  
`d` Number: coordinate of second _control point_  
`t` Number: value between 0 and 1

So, the points on the curve are values 2 and 3, not 1 and 4. That would be more similar to the `curve()` function.

---

<div class="post-metadata">

**Author:** ![kll](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kll/32/964_2.png) [@kll](https://discourse.processing.org/u/kll)\
**Post date:** [November 16, 2018, 5:06pm UTC](https://discourse.processing.org/t/curvepoint-documentation/5601/2 "2018-11-16T17:06:18Z")

</div>

looks like

[https://p5js.org/reference/#/p5/curvePoint](https://p5js.org/reference/#/p5/curvePoint)

[https://processing.org/reference/curvePoint\_.html](https://processing.org/reference/curvePoint_.html)

are different but both confused about this.

[https://editor.p5js.org/kll/sketches/BJYFW\_hTQ](https://editor.p5js.org/kll/sketches/BJYFW_hTQ)

---

<div class="post-metadata">

**Author:** ![dan850](https://avatars.discourse-cdn.com/v4/letter/d/e9c0ed/32.png) [@dan850](https://discourse.processing.org/u/dan850)\
**Post date:** [November 17, 2018, 12:29am UTC](https://discourse.processing.org/t/curvepoint-documentation/5601/3 "2018-11-17T00:29:12Z")

</div>

Make sure to let the devs know 🙂 - [https://github.com/processing/p5.js/issues?q=is%3Aopen+is%3Aissue+label%3Aarea%3Adocumentation](https://github.com/processing/p5.js/issues?q=is%3Aopen+is%3Aissue+label%3Aarea%3Adocumentation)

---

<div class="post-metadata">

**Author:** ![mzed](https://avatars.discourse-cdn.com/v4/letter/m/c6cbf5/32.png) [@mzed](https://discourse.processing.org/u/mzed)\
**Post date:** [November 20, 2018, 12:15am UTC](https://discourse.processing.org/t/curvepoint-documentation/5601/4 "2018-11-20T00:15:52Z")

</div>

There’s now an issue here:

> <https://github.com/processing/p5.js/issues/3321>
