sdlModf function stdinc
Split x into integer and fractional parts
This function operates on double-precision floating point values, use SDL_modff for single-precision floats.
\param x floating point value.
\param y output pointer to store the integer part of x.
\returns the fractional part of x.
\threadsafety It is safe to call this function from any thread.
\since This function is available since SDL 3.2.0.
\sa SDL_modff \sa SDL_trunc \sa SDL_fmod
extern SDL_DECLSPEC double SDLCALL SDL_modf(double x, double *y)
Implementation
double sdlModf(double x, Pointer<Double> y) {
final sdlModfLookupFunction = _libSdl
.lookupFunction<
Double Function(Double x, Pointer<Double> y),
double Function(double x, Pointer<Double> y)
>('SDL_modf');
return sdlModfLookupFunction(x, y);
}