Back to index

radiance  4R0+20100331
pmap.h
Go to the documentation of this file.
00001 /* RCSid: $Id: pmap.h,v 2.4 2004/03/28 20:33:14 schorsch Exp $ */
00002 /* Pmap return codes */
00003 #ifndef _RAD_PMAP_H_
00004 #define _RAD_PMAP_H_
00005 
00006 #ifdef __cplusplus
00007 extern "C" {
00008 #endif
00009 
00010 #define PMAP_BAD     -1
00011 #define PMAP_LINEAR  0
00012 #define PMAP_PERSP   1
00013 
00014 /*  |a b|
00015  *  |c d|
00016  */
00017 #define DET2(a,b, c,d) ((a)*(d) - (b)*(c))
00018 
00019 
00020        /* defined in pmapgen.c */
00021 extern int pmap_quad_rect(double u0, double v0, double u1, double v1,
00022               double qdrl[4][2], double QR[3][3]);
00023 extern int pmap_square_quad(double qdrl[4][2], double SQ[3][3]);
00024 
00025 #ifdef __cplusplus
00026 }
00027 #endif
00028 #endif /* _RAD_PMAP_H_ */
00029