logoalt Hacker News

smallstepformantoday at 4:44 AM1 replyview on HN

Are there any c/c++ libs / headers that use this (without converting to radians in the background). I like this idea.


Replies

teo_zerotoday at 8:24 AM

The C standard defines the functions sinpi(), cospi(), etc. that act on half-turns. If you have a modern compiler, all you have to do is to include math.h