b2Angle.h 443 B

12345678910111213141516171819202122232425
  1. //
  2. // Created by jovian on 31/07/17.
  3. //
  4. #ifndef TINYSHOOTER_B2ANGLE_H
  5. #define TINYSHOOTER_B2ANGLE_H
  6. #include "b2_math.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(b2Vec2 u, b2Vec2 v);
  14. /**
  15. * Give angle between u and horizon
  16. * @param u : Vector
  17. * @return Float angle in radians
  18. */
  19. float b2Angle(b2Vec2 u);
  20. #endif //TINYSHOOTER_B2ANGLE_H