39 #define XDelta(A, B) ((B).x - (A).x) 40 #define YDelta(A, B) ((B).y - (A).y) 41 #define SlopeFrom(A, B) (YDelta(A, B) / XDelta(A, B)) 42 #define AngleFrom(A, B) (atan2((double)YDelta(A, B), (double)XDelta(A, B))) 44 #define XIntersectionOf(A, B, X) (SlopeFrom(A, B) * ((X)-A.x) + A.y)
float DistanceBetween(FPOINT A, FPOINT B)
float NormalizedAngleFrom(FPOINT *Point1, FPOINT *Point2, float FullScale)