from_polar#

classmethod AxAngle.from_polar(azimuth: ndarray | list | tuple | float, polar: ndarray | list | tuple | float, radial: float = 1.0, degrees: bool = False) Vector3d[source]#

Initialize from spherical coordinates according to the ISO 31-11 standard [Weisstein, 2005].

Parameters:
azimuth

Azimuth angle(s) in radians (degrees=False) or degrees (degrees=True).

polar

Polar angle(s) in radians (degrees=False) or degrees (degrees=True).

radial

Radial distance. Defaults to 1 to produce unit vectors.

degrees

If True, the angles are assumed to be in degrees. Default is False.

Returns:
vec