# Where or how to learn trigonometry for processing?

**URL:** <https://discourse.processing.org/t/where-or-how-to-learn-trigonometry-for-processing/28819>\
**Category:** Beginners\
**Created:** [March 25, 2021, 6:00am UTC](https://discourse.processing.org/t/where-or-how-to-learn-trigonometry-for-processing/28819 "2021-03-25T06:00:49Z")\
**Posts on this page:** 2\
**Page:** 2

<div class="post-metadata">

**Author:** ![Sierra\_Alpha\_Romeo.P](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/sierra_alpha_romeo.p/32/11571_2.png) [@Sierra\_Alpha\_Romeo.P](https://discourse.processing.org/u/Sierra_Alpha_Romeo.P)\
**Post date:** [April 9, 2021, 4:48pm UTC](https://discourse.processing.org/t/where-or-how-to-learn-trigonometry-for-processing/28819/21 "2021-04-09T16:48:30Z")

</div>

> [@resboy2445](#):
>
> for example, it i want to draw a polygon with a line, how do i decide what the number for each angle should be?

Not sure if this can help you but basic trigonometry jammed with complex numbers helped me do this during my high school (some topic called nth roots of unity). That gives an intuitive understanding of trapping regular polygons inside the unit circle.

> **[Root of unity](https://en.wikipedia.org/wiki/Root_of_unity)**
>
> In mathematics, a root of unity, occasionally called a de Moivre number, is any complex number that yields 1 when raised to some positive integer power n. Roots of unity are used in many branches of mathematics, and are especially important in number theory, the theory of group characters, and the discrete Fourier transform.
> Roots of unity can be defined in any field. If the characteristic of the field is zero, the roots are complex numbers that are also algebraic integers. For fields with a ...

> [@TfGuy44](#):
>
> If we keep jamming slices together, we can see the rest of the endpoints we want are:  
> `( cos( 3 * PI / 3 ) , sin( 3 * PI / 3 ) )`  
> `( cos( 4 * PI / 3 ) , sin( 4 * PI / 3 ) )`  
> `( cos( 5 * PI / 3 ) , sin( 5 * PI / 3 ) )`  
> `( cos( 6 * PI / 3 ) , sin( 6 * PI / 3 ) )`

@resboy2445 This is exactly what I wanted to say, but in a broader sense you can use the Argand plane to understand it. @TfGuy44 explained the angles in a very comprehensive way, but for deeper understanding, you may refer to roots of unity.

---

<div class="post-metadata">

**Author:** ![deanomite](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/deanomite/32/159_2.png) [@deanomite](https://discourse.processing.org/u/deanomite)\
**Post date:** [April 9, 2021, 5:05pm UTC](https://discourse.processing.org/t/where-or-how-to-learn-trigonometry-for-processing/28819/22 "2021-04-09T17:05:10Z")

</div>

@TfGuy44 Was browsing generally and came across this wonderful method of understanding trig. Beautifully explained!! Thank you for taking the time to explain in such detail. Enjoyed reading. Also hungry now and ordered a pizza! There goes the circumference of my waistline 😆

[Previous page](https://discourse.processing.org/t/where-or-how-to-learn-trigonometry-for-processing/28819.md?page=1)
