Reference system definition
lA local cartesian reference system is assumed solidal with the listener head; X’ axis is pointing forward (nose), Y’axis is pointing on the left ear, and the Z’ axis towards the top of the head.
We are searching for the local arrival angles of the incoming ray: elevation (j) and azimuth (q)