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