Simplify precalculate_angles()
Simplify passf5()