mirror of
https://gitlab.com/dosowisko.net/libsuperderpy.git
synced 2025-02-08 06:06:43 +01:00
maths: Sign can return an integer
This commit is contained in:
parent
f215bc0c83
commit
3c3730f9d5
2 changed files with 2 additions and 2 deletions
|
@ -57,7 +57,7 @@ SYMBOL_EXPORT double Lerp(double left, double right, double pos) {
|
|||
return left + (right - left) * pos;
|
||||
}
|
||||
|
||||
SYMBOL_EXPORT double Sign(double val) {
|
||||
SYMBOL_EXPORT int Sign(double val) {
|
||||
return val / fabs(val);
|
||||
}
|
||||
|
||||
|
|
|
@ -30,7 +30,7 @@ double VectorLength(double x, double y, double z);
|
|||
double Wrap(double left, double right, double val);
|
||||
double Clamp(double left, double right, double val);
|
||||
double Lerp(double left, double right, double pos);
|
||||
double Sign(double val);
|
||||
int Sign(double val);
|
||||
double Fract(double val);
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue