Mercurial > audlegacy-plugins
comparison src/paranormal/pn_utils.h @ 149:fd9c0a5871ac trunk
[svn] - new and IMPROVED paranormal visualization studio
author | nenolod |
---|---|
date | Mon, 30 Oct 2006 23:02:33 -0800 |
parents | |
children | 3b034150d31e |
comparison
equal
deleted
inserted
replaced
148:9d9fc9e1de48 | 149:fd9c0a5871ac |
---|---|
1 #ifndef _PN_UTILS_H | |
2 #define _PN_UTILS_H | |
3 | |
4 #ifndef M_PI | |
5 #define M_PI 3.14159265358979323846 | |
6 #endif | |
7 | |
8 #define CAP(i,c) (i > c ? c : i < -(c) ? -(c) : i) | |
9 #define CAPHILO(i,h,l) (i > h ? h : i < l ? l : i) | |
10 #define CAPHI(i,h) (i > h ? h : i) | |
11 #define CAPLO(i,l) (i < l ? l : i) | |
12 | |
13 #define PN_IMG_INDEX(x,y) ((x) + (pn_image_data->width * (y))) | |
14 | |
15 #endif /* _PN_UTILS_H */ |