home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
vectoper.zip
/
RTMatMac.h
< prev
next >
Wrap
Text File
|
1996-09-19
|
934b
|
24 lines
#define M_PI 3.14159265358979323846
#define MIN(x, y) ( (x < y)? x : y)
#define MAX(x, y) ( (x > y)? x : y)
#define SQR(x) ( (x) * (x) )
#define DISTSQ(x1, y1, x2, y2) ( \
( \
( \
(x2-x1)*(x2-x1) \
) \
+ \
( \
(y2-y1)*(y2-y1) \
) \
) \
)