SDL_tan(3)
β¨ SDL_tan β¨
okay bestie, welcome to the SDL_tan(3) page from the SDL3 FUNCTIONS crew π we're doing trigonometry today and honestly? it's giving math class but make it cute π
πΈ NAME πΈ
SDL_tan β compute the tangent of x π
π¦ SYNOPSIS π¦
#include <SDL3/SDL_stdinc.h>
double SDL_tan(double x);
like, that's the whole thing. one include, one function, one double going in and one double coming out π
π DESCRIPTION π
okay so here's the vibe check on your domains and ranges, no cap:
- Domain:
-INF <= x <= INF - Range:
-INF <= y <= INF
this function operates on double-precision floating point values. so if you're out here with single-precision floats, use SDL_tanf instead, iykyk π
and like, important lore alert π¨: 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 basically don't be out here expecting bit-for-bit identical results across the whole multiverse, bestie π it's not that kind of function.
π FUNCTION PARAMETERS π
xβ floating point value, in radians. yes radians, not degrees, don't embarrass us π
β RETURN VALUE β
returns the tangent of x. that's it, that's the tea π
π₯ THREAD SAFETY π₯
it is safe to call this function from any thread. multitasking queen behavior, we love to see it π
π AVAILABILITY π
this function is available since SDL 3.2.0. so if you're on something olderβ¦ not me, not the vibe π
π«Ά SEE ALSO π«Ά
go read those too, they're all part of the trig bestie squad πΈ
and that's a wrap on SDL_tan(3) from Simple Directmedia Layer, rocking SDL 3.4.18 π stay radiant, stay in radians, and slay β¨π§
π¦ 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