# Quaternion¶

class Quaternion(data)[source]

Bases: object

A class representing a Quaternion.

Methods

 from_axis_rotation Return quaternion for rotation about given axis. from_euler Generate a quaternion from a set of Euler angles. norm Norm of quaternion. normalize Normalizes a Quaternion to unit length so that it represents a valid rotation. to_matrix Converts a unit-length quaternion to a rotation matrix. to_zyz Converts a unit-length quaternion to a sequence of ZYZ Euler angles.