Ejemplo n.º 1
0
 void UpdateCoords(RayTracer tracer, int *minX, int *maxX,
                   int *minY, int *maxY, ref int count)
 {
     tracer.Step();
     minX[tracer.Z] = Math.Min(tracer.X, minX[tracer.Z]);
     minY[tracer.Z] = Math.Min(tracer.Y, minY[tracer.Z]);
     maxX[tracer.Z] = Math.Max(tracer.X, maxX[tracer.Z]);
     maxY[tracer.Z] = Math.Max(tracer.Y, maxY[tracer.Z]);
     count          = Math.Max(count, tracer.Z);
 }
 void UpdateCoords( RayTracer tracer, int* minX, int* maxX, 
     int* minY, int* maxY, ref int count)
 {
     tracer.Step();
     minX[tracer.Z] = Math.Min( tracer.X, minX[tracer.Z] );
     minY[tracer.Z] = Math.Min( tracer.Y, minY[tracer.Z] );
     maxX[tracer.Z] = Math.Max( tracer.X, maxX[tracer.Z] );
     maxY[tracer.Z] = Math.Max( tracer.Y, maxY[tracer.Z] );
     count = Math.Max( count, tracer.Z );
 }