Guest User

Untitled

a guest
Oct 20th, 2014
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.20 KB | None | 0 0
  1. #ifndef MATHFUNC_H
  2. #define MATHFUNC_H
  3. #include <math.h>
  4.  
  5. double angle(int x1, int y1, int x2, int y2){
  6.     int h = y2 - y1;
  7.     int w = x2 - x1;
  8.     return atan2(h, w);
  9. }
  10.  
  11. #endif // MATHFUNC_H
Advertisement
Add Comment
Please, Sign In to add comment