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
/
ascendMar8.tar
/
UMass
/
Triangulate
/
include
/
macr.h
< prev
next >
Wrap
C/C++ Source or Header
|
1995-04-13
|
426b
|
26 lines
/*
* @(#)macr.h 1.7
* 12/21/94
* 1
*
*
*/
#ifndef MACR
# define MACR
#include "rh_util.h"
#define CEILING(x) ((int)((x) + .9999999999))
#define ROUND(x) ((int)((x) + .5))
#define FLOOR(x) ((int)(x))
#define ODD(x) ((((x) / 2.0) == FLOOR((x) / 2.0)) ? 0 : 1)
#define EVEN(x) ((((x) / 2.0) == FLOOR((x) / 2.0)) ? 1 : 0)
#define EXPT(x,y) (exp(log(x) * y))
#endif MACR