mirror of
https://gitlab.com/dosowisko.net/libsuperderpy.git
synced 2024-12-05 00:38:00 +01:00
maths: Provide MIN and MAX macros if not available
This commit is contained in:
parent
4eb5903b11
commit
8e4dfa3884
1 changed files with 8 additions and 0 deletions
|
@ -23,6 +23,14 @@
|
|||
|
||||
#include "libsuperderpy.h"
|
||||
|
||||
#ifndef MAX
|
||||
#define MAX(a, b) (((a) > (b)) ? (a) : (b))
|
||||
#endif
|
||||
|
||||
#ifndef MIN
|
||||
#define MIN(a, b) (((a) < (b)) ? (a) : (b))
|
||||
#endif
|
||||
|
||||
double DotProduct(const double v[], const double u[], int n);
|
||||
double VectorLength(double x, double y, double z);
|
||||
double Wrap(double left, double right, double val);
|
||||
|
|
Loading…
Reference in a new issue