sisl.quaternion module¶
-
class
sisl.quaternion.
Quaternion
(angle=0.0, v=None, radians=False)[source]¶ Bases:
object
Quaternion object to enable easy rotational quantities.
Attributes
angle
Returns the angle associated with this quaternion (in radians) degree
Returns the angle associated with this quaternion (in degree) radians
Returns the angle associated with this quaternion (in radians) 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 quaternionCreate quaternion object with angle and vector
Attributes
angle
Returns the angle associated with this quaternion (in radians) degree
Returns the angle associated with this quaternion (in degree) radians
Returns the angle associated with this quaternion (in radians) 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 quaternion-
angle
¶ Returns the angle associated with this quaternion (in radians)
-
degree
¶ Returns the angle associated with this quaternion (in degree)
-
radians
¶ Returns the angle associated with this quaternion (in radians)
-