sdlAcos function

double sdlAcos(
  1. double x
)

Use this function to compute arc cosine of x.

The definition of y = acos(x) is x = cos(y).

Domain: -1 <= x <= 1

Range: 0 <= y <= Pi

\param x floating point value, in radians. \returns arc cosine of x.

\since This function is available since SDL 2.0.2.

extern DECLSPEC double SDLCALL SDL_acos(double x)

Implementation

double sdlAcos(double x) {
  final sdlAcosLookupFunction = libSdl2.lookupFunction<
      Double Function(Double x), double Function(double x)>('SDL_acos');
  return sdlAcosLookupFunction(x);
}