20 #define _USE_MATH_DEFINES // for M_PI
30 const double xd =
XDelta(A, B);
31 const double yd =
YDelta(A, B);
32 return sqrt(static_cast<double>(xd * xd + yd * yd));
45 float NumRadsInCircle = 2.0 * M_PI;
47 float Angle =
AngleFrom (*Point1, *Point2);
49 Angle += NumRadsInCircle;
50 Angle *= FullScale / NumRadsInCircle;
51 if (Angle < 0.0 || Angle >= FullScale)