Skip to content

Instantly share code, notes, and snippets.

@hb3p8
Created April 14, 2014 11:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hb3p8/2578dcf43428f1ae233e to your computer and use it in GitHub Desktop.
Save hb3p8/2578dcf43428f1ae233e to your computer and use it in GitHub Desktop.
pushedT = (aTimeLft < aTimeRgh) ? aTimeRgh : aTimeLft;
...
int aStackOffset = theHit.Time < pushedT ? 2 : 1;
if (aHead - aStackOffset + 1 <= theSentinel)
return aTriIndex;
aNode = Stack[aHead - aStackOffset + 1];
aHead -= aStackOffset;
pushedT = -MAXFLOAT;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment