23 #ifndef vtkgluPickMatrix_h
24 #define vtkgluPickMatrix_h
30 GLdouble width, GLdouble
height,
31 int *origin,
int *
size )
39 tx = (size[0] + 2.0 * (origin[0] - x)) / width;
40 ty = (size[1] + 2.0 * (origin[1] - y)) /
height;
42 #define M(row,col) m[col*4+row]
43 M(0,0) = sx;
M(0,1) = 0.0;
M(0,2) = 0.0;
M(0,3) = tx;
44 M(1,0) = 0.0;
M(1,1) = sy;
M(1,2) = 0.0;
M(1,3) = ty;
45 M(2,0) = 0.0;
M(2,1) = 0.0;
M(2,2) = 1.0;
M(2,3) = 0.0;
46 M(3,0) = 0.0;
M(3,1) = 0.0;
M(3,2) = 0.0;
M(3,3) = 1.0;
void vtkgluPickMatrix(GLdouble x, GLdouble y, GLdouble width, GLdouble height, int *origin, int *size)