SDL_tanf(3)
β¨ SDL_tanf β¨
okay bestie, welcome to the SDL3 FUNCTIONS corner of the manual, page SDL_tanf(3), where we do trigonometry and we do it cutely. π
πΈ NAME πΈ
SDL_tanf β compute the tangent of x. that's it, that's the whole job. π
π SYNOPSIS π
#include <SDL3/SDL_stdinc.h>
float SDL_tanf(float x);
π¦ DESCRIPTION π¦
so here's the vibe check on this function:
- Domain:
-INF <= x <= INF - Range:
-INF <= y <= INF
it's giving single-precision floating point, bestie. if you need the double-precision version, that's SDL_tan, not this one. know the difference, it's literally important. π«Ά
β οΈ real talk: this function may use a different approximation across different versions, platforms and configurations. i.e, it can return a different value given the same input on different machines or operating systems, or if SDL is updated. so likeβ¦ don't go comparing outputs across machines and being shocked, okay? it's not a bug, it's just how it is. π
π FUNCTION PARAMETERS π
xβ floating point value, in radians. radians, bestie, not degrees. don't do that to yourself. π
π RETURN VALUE π
returns the tangent of x. that's the whole thing. no error code, no drama, just tangent. β¨
π THREAD SAFETY π
it is safe to call this function from any thread. so go off, queen β multi-thread away. π₯
β AVAILABILITY β
this function is available since SDL 3.2.0. if you're on anything older, no tangent for you, sorry bestie. π
π« SEE ALSO π«
Simple Directmedia Layer made this, and this page is from SDL 3.4.18. mwah, go compute some tangents, ily, bye! πβ¨ππ¦πΈ
π¦ where this page comes from
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms