Quaternion¶
-
class
sisl.
Quaternion
(angle=0.0, v=None, rad=False)[source]¶ Quaternion object to enable easy rotational quantities.
Attributes
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)
Methods
__init__
(self[, angle, v, rad])Create quaternion object with angle and vector
conj
(self)Returns the conjugate of it-self
copy
(self)Return deepcopy of itself
norm
(self)Returns the norm of this quaternion
rotate
(self, v)Rotates 3-dimensional vector
v
with the associated quaternion-
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)
-
property