News for hackers. Stuff that matters.
Re:Sin and Cos: The Programmer's Pals by mgeorgoulo on Tuesday March 06, 2018 @06:53AM (#16528257)
I like using trigonometric functions for other things beyond rotations.

For instance, a cropped sine ( [-pi/2,3pi/2] ), remapped to [0,1] in both axes is very handy as a smooth-step function.

Another range ( [0, pi] ) is very convincing as a screen flash.

There are no comments on this comment yet.