SDL_asin(3)
πΈ NAME πΈ
okay so bestie, SDL_asin β compute the arc sine of x. that's the whole name section, but we're gonna spill the tea below. Also this page is SDL_asin(3) from the SDL3 FUNCTIONS manual, so you know exactly where you are. π
β¨ SYNOPSIS β¨
#include <SDL3/SDL_stdinc.h>
double SDL_asin(double x);
That's it. That's the incantation. π«Ά
π¦ DESCRIPTION π¦
The definition of y = asin(x) is x = sin(y). periodt.
Domain: -1 <= x <= 1
Range: -Pi/2 <= y <= Pi/2
This function operates on double-precision floating point values, use SDL_asinf for single-precision floats. so if you're on that float life, go see SDL_asinf. no cap.
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 lowkey don't expect bit-for-bit identical tea across every setup, okay? that's literally in the docs. π
π FUNCTION PARAMETERS π
xβ floating point value. that's the vibe.
π RETURN VALUE π
Returns arc sine of x, in radians. yes bestie, radians, not degrees. the math girlies know. π₯
π₯ THREAD SAFETY π₯
It is safe to call this function from any thread. so go off, multi-threaded main character. π«Ά
β AVAILABILITY β
This function is available since SDL 3.2.0. so if you're on something older, that's not it.
π SEE ALSO π
later bestie π β source: Simple Directmedia Layer, version: SDL 3.4.18, page: SDL_asin(3), and the date? it's giving unlisted, but that's the footer tea. π
π¦ 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