sdlFloorf function stdinc
Compute the floor of x.
The floor of x is the largest integer y such that y <= x, i.e x
rounded down to the nearest integer.
Domain: -INF <= x <= INF
Range: -INF <= y <= INF, y integer
This function operates on single-precision floating point values, use SDL_floor for double-precision floats.
\param x floating point value.
\returns the floor 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_floor \sa SDL_ceilf \sa SDL_truncf \sa SDL_roundf \sa SDL_lroundf
extern SDL_DECLSPEC float SDLCALL SDL_floorf(float x)
Implementation
double sdlFloorf(double x) {
final sdlFloorfLookupFunction = _libSdl
.lookupFunction<Float Function(Float x), double Function(double x)>(
'SDL_floorf',
);
return sdlFloorfLookupFunction(x);
}