Getting Started
Developer Resources
Indices and Tables
Calculate how many times the phase passes through a branch, up or down.
With this result, we can just multiply instead of doing the ray calc for each time.