# Coding practice while waiting on V3?

**URL:** <https://forum.electromage.com/t/coding-practice-while-waiting-on-v3/902>\
**Category:** Uncategorized\
**Created:** [January 12, 2021, 11:45am UTC](https://forum.electromage.com/t/coding-practice-while-waiting-on-v3/902 "2021-01-12T11:45:20Z")\
**Posts on this page:** 1\
**Showing post:** 25

<div class="post-metadata">

**Author:** ![Scruffynerf](https://forum.electromage.com/letter_avatar_proxy/v4/letter/s/34f0e0/32.png) [@Scruffynerf](https://forum.electromage.com/u/Scruffynerf)\
**Post date:** [February 6, 2021, 8:45pm UTC](https://forum.electromage.com/t/coding-practice-while-waiting-on-v3/902/25 "2021-02-06T20:45:51Z")

</div>

> [@JustPete](#):
>
> PI2 Is this Pi squared?

2 PI (6.28…) useful for Radian math (angles)

> [@](#):
>
> Following would be PI3\_4…

PI \*3/4

Also often useful.

See

> [@Atan2(y, x) bug?](https://forum.electromage.com/t/atan2-y-x-bug/445/6):
>
> @Scruffynerf, Sure, you can get a small bit of performance with a constant. You can also do that in the pattern with a var. Vars, literals, and constants have near the same performance. e.g. var HALF\_PI = PI/2 If I were to add half-PI to the constants, what should it be called? HALF\_PI, PI\_2, PI1\_2? The naming convention I borrowed sort of uses \_ in place of division, e.g. PI3\_4 is PI \* 3 / 4. I added PI2 because I used it a lot, when I really wanted [1 Tau](https://en.wikipedia.org/wiki/Turn_(angle)#Tau_proposals).

Search for the rest, I know we have discussed timer and random recently.

The blinkfade code I’d have to go look at, someone else know the answer?

---

_[View the full topic](https://forum.electromage.com/t/coding-practice-while-waiting-on-v3/902)._
