direction#
- optika.direction(angles)[source]#
Given a 2D vector of azimuth and elevation angles, convert to a 3D vector of direction cosines.
- Parameters:
angles (AbstractCartesian2dVectorArray) – A vector of azimuth and elevation angles.
- Return type:
Notes
If the azimuth and elevation angles are taken to \(\phi_x\) and \(\phi_y\), the direction cosines \(\vec{d}\) can be found by
\[\vec{d} = R_y(\phi_x) R_x(\phi_y) \hat{z}\]where \(R_x(\theta)\) and \(R_y(\theta)\) are the rotation matrices about the \(x\) and \(y\) axes respectively.
See also
angles()Inverse of this function