point_to_dipole¶
- emg3d.electrodes.point_to_dipole(point, length, deg=True)[source]¶
Return coordinates of dipole points defined by center, angles, length.
Spherical to Cartesian.
- Parameters
- pointtuple
Point coordinates in the form of (x, y, z, azimuth, elevation).
- lengthfloat
Dipole length (m).
- degbool, default: True
Angles are in degrees if True, radians if False.
- Returns
- dipolendarray
Coordinates of shape (2, 3): [[x1, y1, z1], [x2, y2, z2]].