def quaternion(self):
    'Return transformation matrix as a Quaternion'
    return Quaternion(self.rotation(asQuaternion=True))
Return transformation matrix as a Quaternion
def quaternion(self):
    
    return Quaternion(self.rotation(asQuaternion=True))