Apply sq macro throughout
This commit is contained in:
parent
93ba5bddd7
commit
9f9fe043ba
5 changed files with 21 additions and 21 deletions
|
|
@ -36,6 +36,7 @@
|
|||
// Macros for maths shortcuts
|
||||
#define RADIANS(d) ((d)*M_PI/180.0)
|
||||
#define DEGREES(r) ((r)*180.0/M_PI)
|
||||
#define HYPOT(x,y) sqrt(sq(x)+sq(y))
|
||||
|
||||
// Macros to contrain values
|
||||
#define NOLESS(v,n) do{ if (v < n) v = n; }while(0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue