home *** CD-ROM | disk | FTP | other *** search
/ vis-ftp.cs.umass.edu / vis-ftp.cs.umass.edu.tar / vis-ftp.cs.umass.edu / pub / Software / ASCENDER / ascender.tar.Z / ascender.tar / Triangulate / include / macr.h < prev    next >
C/C++ Source or Header  |  1995-04-13  |  426b  |  26 lines

  1. /* 
  2.  *       @(#)macr.h    1.7
  3.  *       12/21/94
  4.  *       1
  5.  *       
  6.  *
  7.  */
  8.  
  9.  
  10. #ifndef MACR
  11. # define MACR
  12.  
  13. #include "rh_util.h"
  14. #define  CEILING(x) ((int)((x) + .9999999999))
  15. #define  ROUND(x)   ((int)((x) + .5))
  16. #define  FLOOR(x)   ((int)(x))
  17. #define  ODD(x)     ((((x) / 2.0) == FLOOR((x) / 2.0)) ? 0 : 1)
  18. #define  EVEN(x)     ((((x) / 2.0) == FLOOR((x) / 2.0)) ? 1 : 0)
  19. #define  EXPT(x,y)  (exp(log(x) * y)) 
  20.  
  21. #endif MACR
  22.  
  23.  
  24.  
  25.  
  26.