from_polar#

classmethod ReciprocalLatticeVector.from_polar(azimuth, polar, radial=1)[source]#

Initialize from spherical coordinates according to the ISO 31-11 standard :cite:`weisstein2005spherical`.

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.

Return type:

vec