Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef MATHFUNC_H
- #define MATHFUNC_H
- #include <math.h>
- double angle(int x1, int y1, int x2, int y2){
- int h = y2 - y1;
- int w = x2 - x1;
- return atan2(h, w);
- }
- #endif // MATHFUNC_H
Advertisement
Add Comment
Please, Sign In to add comment