# Quaternion¶

class Quaternion(data)[source]

A class representing a Quaternion.

Methods

 Call self as a function. Quaternion.from_axis_rotation(angle, axis) Return quaternion for rotation about given axis. Quaternion.from_euler(angles[, order]) Generate a quaternion from a set of Euler angles. Norm of quaternion. Quaternion.normalize([inplace]) Normalizes a Quaternion to unit length so that it represents a valid rotation. Converts a unit-length quaternion to a rotation matrix. Converts a unit-length quaternion to a sequence of ZYZ Euler angles.