csc.math.Quaternion¶
- class csc.math.Quaternion¶
Quaternion class
This class is useful to calculate rotation operations.
Methods
__init__
(self, w, x, y, z)from_two_vectors
(arg0, arg1)identity
()inverse
(self)w
(self)x
(self)y
(self)z
(self)- __annotations__ = {}¶
- __module__ = 'csc.math'¶
- __mul__(*args, **kwargs)¶
Overloaded function.
__mul__(self: csc.math.Quaternion, arg0: csc.math.Quaternion) -> csc.math.Quaternion
__mul__(self: csc.math.Quaternion, arg0: numpy.ndarray[numpy.float32[3, 1]]) -> numpy.ndarray[numpy.float32[3, 1]]
- static from_two_vectors(arg0: numpy.ndarray[numpy.float32[3, 1]], arg1: numpy.ndarray[numpy.float32[3, 1]]) csc.math.Quaternion ¶
- static identity() csc.math.Quaternion ¶
- inverse(self: csc.math.Quaternion) csc.math.Quaternion ¶
- w(self: csc.math.Quaternion) float ¶
- x(self: csc.math.Quaternion) float ¶
- y(self: csc.math.Quaternion) float ¶
- z(self: csc.math.Quaternion) float ¶