mirror of
https://github.com/Ryujinx/SDL.git
synced 2025-03-24 04:35:03 +00:00
include: Swap parameter names in atan2 functions
This commit is contained in:
parent
7f308abb55
commit
6cbee0634e
|
@ -601,8 +601,8 @@ extern DECLSPEC double SDLCALL SDL_asin(double x);
|
||||||
extern DECLSPEC float SDLCALL SDL_asinf(float x);
|
extern DECLSPEC float SDLCALL SDL_asinf(float x);
|
||||||
extern DECLSPEC double SDLCALL SDL_atan(double x);
|
extern DECLSPEC double SDLCALL SDL_atan(double x);
|
||||||
extern DECLSPEC float SDLCALL SDL_atanf(float x);
|
extern DECLSPEC float SDLCALL SDL_atanf(float x);
|
||||||
extern DECLSPEC double SDLCALL SDL_atan2(double x, double y);
|
extern DECLSPEC double SDLCALL SDL_atan2(double y, double x);
|
||||||
extern DECLSPEC float SDLCALL SDL_atan2f(float x, float y);
|
extern DECLSPEC float SDLCALL SDL_atan2f(float y, float x);
|
||||||
extern DECLSPEC double SDLCALL SDL_ceil(double x);
|
extern DECLSPEC double SDLCALL SDL_ceil(double x);
|
||||||
extern DECLSPEC float SDLCALL SDL_ceilf(float x);
|
extern DECLSPEC float SDLCALL SDL_ceilf(float x);
|
||||||
extern DECLSPEC double SDLCALL SDL_copysign(double x, double y);
|
extern DECLSPEC double SDLCALL SDL_copysign(double x, double y);
|
||||||
|
|
|
@ -52,22 +52,22 @@ SDL_atanf(float x)
|
||||||
}
|
}
|
||||||
|
|
||||||
double
|
double
|
||||||
SDL_atan2(double x, double y)
|
SDL_atan2(double y, double x)
|
||||||
{
|
{
|
||||||
#if defined(HAVE_ATAN2)
|
#if defined(HAVE_ATAN2)
|
||||||
return atan2(x, y);
|
return atan2(y, x);
|
||||||
#else
|
#else
|
||||||
return SDL_uclibc_atan2(x, y);
|
return SDL_uclibc_atan2(y, x);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
float
|
float
|
||||||
SDL_atan2f(float x, float y)
|
SDL_atan2f(float y, float x)
|
||||||
{
|
{
|
||||||
#if defined(HAVE_ATAN2F)
|
#if defined(HAVE_ATAN2F)
|
||||||
return atan2f(x, y);
|
return atan2f(y, x);
|
||||||
#else
|
#else
|
||||||
return (float)SDL_atan2((double)x, (double)y);
|
return (float)SDL_atan2((double)y, (double)x);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -444,7 +444,7 @@ SDL_sin(double x)
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
float
|
float
|
||||||
SDL_sinf(float x)
|
SDL_sinf(float x)
|
||||||
{
|
{
|
||||||
#if defined(HAVE_SINF)
|
#if defined(HAVE_SINF)
|
||||||
|
|
Loading…
Reference in a new issue