Elements.pyECSS.math_utilities.quaternion_from_axis_angle

Elements.pyECSS.math_utilities.quaternion_from_axis_angle(axis: Elements.pyECSS.math_utilities.vec, degrees=0.0, radians=None)[source]

Generate a quaternion from a rotation axis and an angle, scalar-last like scipy # https://www.euclideanspace.com/maths/geometry/rotations/conversions/angleToQuaternion/index.htm # https://en.wikipedia.org/wiki/Axis–angle_representation#Rotation_vector

Parameters
  • axis (vec) – [description]

  • degrees (float, optional) – [description], defaults to 0.0

  • radians ([type], optional) – [description], defaults to None