Is this an astronomical math calculation done in real time, or do you pre-compute all possible paths? I'm interested in the math behind it.