csc.math.Quaternion

class csc.math.Quaternion

Quaternion class

This class is useful to calculate rotation operations.

__init__(self: csc.math.Quaternion, w: float, x: float, y: float, z: float) None

Methods

__init__(self, w, x, y, z)

from_two_vectors(arg0, arg1)

identity()

inverse(self)

w(self)

x(self)

y(self)

z(self)

__annotations__ = {}
__init__(self: csc.math.Quaternion, w: float, x: float, y: float, z: float) None
__module__ = 'csc.math'
__mul__(*args, **kwargs)

Overloaded function.

  1. __mul__(self: csc.math.Quaternion, arg0: csc.math.Quaternion) -> csc.math.Quaternion

  2. __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