Quaternion¶
-
class
sisl.Quaternion(angle=0.0, v=None, rad=False)[source]¶ Quaternion object to enable easy rotational quantities.
Attributes
angleReturns the angle associated with this quaternion (in radians) degreeReturns the angle associated with this quaternion (in degree) radianReturns the angle associated with this quaternion (in radians) Methods
__init__([angle, v, rad])Create quaternion object with angle and vector 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 vwith the associated quaternion-
angle¶ Returns the angle associated with this quaternion (in radians)
-
degree¶ Returns the angle associated with this quaternion (in degree)
-
radian¶ Returns the angle associated with this quaternion (in radians)
-