Go to the documentation of this file.
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), \
43 (double) XDelta(A,B) ) )
45 #define XIntersectionOf(A,B,X) ( SlopeFrom(A,B) * ((X) - A.x) + A.y)