# Draw angle curve between two vectors

**URL:** https://discourse.processing.org/t/draw-angle-curve-between-two-vectors/27033
**Category:** Coding Questions
**Created:** [January 13, 2021, 6:17pm UTC](https://discourse.processing.org/t/draw-angle-curve-between-two-vectors/27033 "2021-01-13T18:17:00Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![sarath.jasrin](https://avatars.discourse-cdn.com/v4/letter/s/f475e1/32.png) [@sarath.jasrin](https://discourse.processing.org/u/sarath.jasrin)
#### Post date: [January 13, 2021, 6:17pm UTC](https://discourse.processing.org/t/draw-angle-curve-between-two-vectors/27033/1 "2021-01-13T18:17:00Z")

</div>

How to draw angle curve between two vectors like below pictures in p5js

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/1/1a097d8d93680eb2b481c9efb9addcc3d8e7e912.jpeg)

My current drawing looks like below

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/c/cad73a7c5fdac35001c8e1d394f01b24847b539e.png)

Here is the example sketch: `https://editor.p5js.org/sarathjasrin/sketches/EVFh7Ni3n`

Thanks in advance

---

<div class="post-metadata">

### Author: ![CodeMasterX](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/codemasterx/32/2942_2.png) [@CodeMasterX](https://discourse.processing.org/u/CodeMasterX)
#### Post date: [January 13, 2021, 10:49pm UTC](https://discourse.processing.org/t/draw-angle-curve-between-two-vectors/27033/2 "2021-01-13T22:49:45Z")

</div>

for every line you need to get a direction (use atan2()). After that use the arc() function to draw it.

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

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