sisl.Quaternion
- class sisl.Quaternion(angle=0.0, v=None, rad=False)
Bases:
object
Quaternion object to enable easy rotational quantities.
Methods
conj
()Returns the conjugate of it-self
copy
()Return deepcopy of itself
norm
()Returns the norm of this quaternion
rotate
(v)Rotates 3-dimensional vector
v
with the associated quaternionAttributes
Returns the angle associated with this quaternion (in radians)
Returns the angle associated with this quaternion (in degree)
Returns the angle associated with this quaternion (in radians)
- property angle
Returns the angle associated with this quaternion (in radians)
- property degree
Returns the angle associated with this quaternion (in degree)
- property radian
Returns the angle associated with this quaternion (in radians)