• Home
  • Raw
  • Download

Lines Matching refs:di

94 			float di = V[i]->z - n * V[i]->w;  in clipNear()  local
97 if(di >= 0) in clipNear()
103 clipEdge(polygon.B[polygon.b], *V[i], *V[j], di, dj); in clipNear()
111 clipEdge(polygon.B[polygon.b], *V[j], *V[i], dj, di); in clipNear()
132 float di = V[i]->w - V[i]->z; in clipFar() local
135 if(di >= 0) in clipFar()
141 clipEdge(polygon.B[polygon.b], *V[i], *V[j], di, dj); in clipFar()
149 clipEdge(polygon.B[polygon.b], *V[j], *V[i], dj, di); in clipFar()
170 float di = V[i]->w + V[i]->x; in clipLeft() local
173 if(di >= 0) in clipLeft()
179 clipEdge(polygon.B[polygon.b], *V[i], *V[j], di, dj); in clipLeft()
187 clipEdge(polygon.B[polygon.b], *V[j], *V[i], dj, di); in clipLeft()
208 float di = V[i]->w - V[i]->x; in clipRight() local
211 if(di >= 0) in clipRight()
217 clipEdge(polygon.B[polygon.b], *V[i], *V[j], di, dj); in clipRight()
225 clipEdge(polygon.B[polygon.b], *V[j], *V[i], dj, di); in clipRight()
246 float di = V[i]->w - V[i]->y; in clipTop() local
249 if(di >= 0) in clipTop()
255 clipEdge(polygon.B[polygon.b], *V[i], *V[j], di, dj); in clipTop()
263 clipEdge(polygon.B[polygon.b], *V[j], *V[i], dj, di); in clipTop()
284 float di = V[i]->w + V[i]->y; in clipBottom() local
287 if(di >= 0) in clipBottom()
293 clipEdge(polygon.B[polygon.b], *V[i], *V[j], di, dj); in clipBottom()
301 clipEdge(polygon.B[polygon.b], *V[j], *V[i], dj, di); in clipBottom()
322 float di = p.A * V[i]->x + p.B * V[i]->y + p.C * V[i]->z + p.D * V[i]->w; in clipPlane() local
325 if(di >= 0) in clipPlane()
331 clipEdge(polygon.B[polygon.b], *V[i], *V[j], di, dj); in clipPlane()
339 clipEdge(polygon.B[polygon.b], *V[j], *V[i], dj, di); in clipPlane()
349 …inline void Clipper::clipEdge(float4 &Vo, const float4 &Vi, const float4 &Vj, float di, float dj) … in clipEdge() argument
351 float D = 1.0f / (dj - di); in clipEdge()
353 Vo.x = (dj * Vi.x - di * Vj.x) * D; in clipEdge()
354 Vo.y = (dj * Vi.y - di * Vj.y) * D; in clipEdge()
355 Vo.z = (dj * Vi.z - di * Vj.z) * D; in clipEdge()
356 Vo.w = (dj * Vi.w - di * Vj.w) * D; in clipEdge()