Lines Matching refs:plane
78 * Compute the equation of a plane used to interpolate line fragment data
82 * Output: plane - the plane equation.
84 * Note: we don't really have enough parameters to specify a plane.
85 * We take the endpoints of the line and compute a plane such that
86 * the cross product of the line vector and the plane normal is
87 * parallel to the projection plane.
91 GLfloat z0, GLfloat z1, GLfloat plane[4])
105 plane[0] = a;
106 plane[1] = b;
107 plane[2] = c;
108 plane[3] = d;
119 plane[0] = 0.0F;
120 plane[1] = 0.0F;
121 plane[2] = 1.0F;
122 plane[3] = 0.0F;
125 plane[0] = a;
126 plane[1] = b;
127 plane[2] = c;
128 plane[3] = d;
135 constant_plane(GLfloat value, GLfloat plane[4])
137 plane[0] = 0.0F;
138 plane[1] = 0.0F;
139 plane[2] = -1.0F;
140 plane[3] = value;
145 solve_plane(GLfloat x, GLfloat y, const GLfloat plane[4])
147 const GLfloat z = (plane[3] + plane[0] * x + plane[1] * y) / -plane[2];
159 solve_plane_recip(GLfloat x, GLfloat y, const GLfloat plane[4])
161 const GLfloat denom = plane[3] + plane[0] * x + plane[1] * y;
165 return -plane[2] / denom;
170 * Solve plane and return clamped GLchan value.
173 solve_plane_chan(GLfloat x, GLfloat y, const GLfloat plane[4])
175 const GLfloat z = (plane[3] + plane[0] * x + plane[1] * y) / -plane[2];