b2Angle.h 468 B

12345678910111213141516171819202122232425
  1. //
  2. // Created by jovian on 31/07/17.
  3. //
  4. #ifndef TINYSHOOTER_B2ANGLE_H
  5. #define TINYSHOOTER_B2ANGLE_H
  6. #include <box2d/box2d.h>
  7. /**
  8. * Give angle between u and v
  9. * @param u : First vector
  10. * @param v : Second vector
  11. * @return Float angle in radians
  12. */
  13. float b2Angle(const b2Vec2 &u, const b2Vec2 &v);
  14. /**
  15. * Give angle between u and horizon
  16. * @param u : Vector
  17. * @return Float angle in radians
  18. */
  19. float b2Angle(const b2Vec2 &u);
  20. #endif //TINYSHOOTER_B2ANGLE_H