Skip to content

Commit

Permalink
add Utils.h
Browse files Browse the repository at this point in the history
  • Loading branch information
hvanruys committed Dec 6, 2023
1 parent 14e737c commit b333ad8
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions core/Utils.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#ifndef UTILS_H
#define UTILS_H

#define M_PI 3.141592653589793238462643383279502884L
#define SQR(x) ((x)*(x))
#define POW2(x) SQR(x)
#define POW3(x) ((x)*(x)*(x))
#define POW4(x) (POW2(x)*POW2(x))
#define POW7(x) (POW3(x)*POW3(x)*(x))
#define DegToRad(x) ((x)*M_PI/180)
#define RadToDeg(x) ((x)/M_PI*180)

#endif // UTILS_H

0 comments on commit b333ad8

Please sign in to comment.