# What is the difference between bezierVertex() and curveVertex()?

**URL:** https://discourse.processing.org/t/what-is-the-difference-between-beziervertex-and-curvevertex/2683
**Category:** Processing
**Created:** [August 16, 2018, 7:12am UTC](https://discourse.processing.org/t/what-is-the-difference-between-beziervertex-and-curvevertex/2683 "2018-08-16T07:12:38Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![tony](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/tony/32/949_2.png) [@tony](https://discourse.processing.org/u/tony)
#### Post date: [August 16, 2018, 7:12am UTC](https://discourse.processing.org/t/what-is-the-difference-between-beziervertex-and-curvevertex/2683/1 "2018-08-16T07:12:38Z")

</div>

More specifically, when would I use one over the other?

I’ve used bezier() more recently, so I’m familiar with it’s mechanics and the concept of control points, but curveVertex() remains more opaque. I have yet to come across a satisfactory explanation regarding the use-cases or how they compare in terms of cost.

Can anyone shed some light on this subject? Can anyone point me in the right direction?

---

<div class="post-metadata">

### Author: ![jb4x](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jb4x/32/789_2.png) [@jb4x](https://discourse.processing.org/u/jb4x)
#### Post date: [August 16, 2018, 8:02am UTC](https://discourse.processing.org/t/what-is-the-difference-between-beziervertex-and-curvevertex/2683/2 "2018-08-16T08:02:00Z")

</div>

Hi,

The two methods implements 2 different kind of curves:

- bezierVertex() draws a [3 points bezier curve](https://fr.wikipedia.org/wiki/Courbe_de_B%C3%A9zier#Exemples)
- curveVertex() draws [catmull-rom splines](https://en.wikipedia.org/wiki/Cubic_Hermite_spline#Catmull%E2%80%93Rom_spline)

The good thing about the spline is that it goes through all the points you give to the function so it is pretty convenient to interpolate motion between waypoints for example.

It terms of computation, I think the bezier curve is more performant but I’m not completely sure about that one.
