Angle calculation FOXSISIM simulation pull request