dipole_to_point#
- emg3d.electrodes.dipole_to_point(dipole, deg=True)[source]#
Return azimuth and elevation for given electrode pair.
Cartesian to spherical.
- Parameters
- dipolendarray
Dipole coordinates of shape (2, 3): [[x1, y1, z1], [x2, y2, z2]].
- degbool, default: True
Return angles in degrees if True, radians if False.
- Returns
- azimuthfloat
Anticlockwise angle from x-axis towards y-axis.
- elevationfloat
Anticlockwise (upwards) angle from the xy-plane towards z-axis.
- lengthfloat
Dipole length (m).