precalculate pixel angles