|
Defines |
#define | PI 3.1415926 |
#define | PI2 PI/2 |
#define | VECCOPY(a, b) { b[0] = a[0]; b[1] = a[1]; b[2] = a[2]; } |
#define | INVERT(a) { a[0] = -a[0]; a[1] = -a[1]; a[2] = -a[2]; } |
#define | VECSUB(a, b, c) { c[0]=a[0]-b[0]; c[1]=a[1]-b[1]; c[2]=a[2]-b[2];} |
#define | VECSUM(a, b, c) { c[0]=a[0]+b[0]; c[1]=a[1]+b[1]; c[2]=a[2]+b[2];} |
#define | VECSCALE(a, b, c) { c[0]=(a)*b[0]; c[1]=(a)*b[1]; c[2]=(a)*b[2];} |
#define | DOT(a, b) ( (a[0]*b[0]) + (a[1]*b[1]) + (a[2]*b[2]) ) |
#define | CROSS(v1, v2, r) |
#define | TOL 0.1 |
Typedefs |
typedef double | vector [3] |
Functions |
void | Hsv2Rgb (double h, double s, double v, unsigned char *r, unsigned char *g, unsigned char *b) |
void | Rgb2Hsv (unsigned char r, unsigned char g, unsigned char b, double *h, double *s, double *v) |
double | hitpoint (vector n, vector x, vector y, vector pb, vector pf, double *a, double *b) |
long | MapFrom (vector p, vector Mp, vector Mdx, vector Mdy, vector Mn, fullscreenbuffer *S, long Xmax, long Ymax, double *red, double *green, double *blue) |
fullscreenbuffer * | ScaleImageMap (unsigned char *ImagePixels, int x, int y, long X, long Y) |
BOOL | Bilinear (double alpha, double beta, fullscreenbuffer *S, long Xmax, long Ymax, double *red, double *green, double *blue) |