home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / vectoper.zip / RTMatMac.h < prev    next >
Text File  |  1996-09-19  |  934b  |  24 lines

  1.  
  2.  
  3.  
  4. #define M_PI  3.14159265358979323846
  5.   
  6.  
  7. #define MIN(x, y) ( (x < y)? x : y)
  8. #define MAX(x, y) ( (x > y)? x : y)
  9.  
  10. #define SQR(x) ( (x) * (x) )
  11.  
  12. #define DISTSQ(x1, y1, x2, y2) (                                       \
  13.                                   (                                    \
  14.                                     (                                  \
  15.                                       (x2-x1)*(x2-x1)                  \
  16.                                     )                                  \
  17.                                     +                                  \
  18.                                     (                                  \
  19.                                       (y2-y1)*(y2-y1)                  \
  20.                                     )                                  \
  21.                                   )                                    \
  22.                                )
  23.  
  24.