Go back to Richel Bilderbeek's homepage.
Go back to Richel Bilderbeek's C++ page.
GetAngle is a math code snippet to calculate the angle between two coordinats. All it needs is the distance between these two coordinats. The resulting angle will be in the range [0.0, 2.0 * pi], these angles ordered like a clock:
12 o'clock is 0.0 * pi |
#include <cassert> |
Go back to Richel Bilderbeek's C++ page.
Go back to Richel Bilderbeek's homepage.