Quaternion class
Definition at line 9 of file quaternion.py.
◆ __init__()
def sophus.quaternion.Quaternion.__init__ |
( |
|
self, |
|
|
|
real, |
|
|
|
vec |
|
) |
| |
Quaternion consists of a real scalar, and an imaginary 3-vector
Definition at line 12 of file quaternion.py.
◆ __add__()
def sophus.quaternion.Quaternion.__add__ |
( |
|
self, |
|
|
|
right |
|
) |
| |
◆ __eq__()
def sophus.quaternion.Quaternion.__eq__ |
( |
|
self, |
|
|
|
other |
|
) |
| |
◆ __getitem__()
def sophus.quaternion.Quaternion.__getitem__ |
( |
|
self, |
|
|
|
key |
|
) |
| |
We use the following convention [vec0, vec1, vec2, real]
Definition at line 39 of file quaternion.py.
◆ __mul__()
def sophus.quaternion.Quaternion.__mul__ |
( |
|
self, |
|
|
|
right |
|
) |
| |
◆ __neg__()
def sophus.quaternion.Quaternion.__neg__ |
( |
|
self | ) |
|
◆ __repr__()
def sophus.quaternion.Quaternion.__repr__ |
( |
|
self | ) |
|
◆ __truediv__()
def sophus.quaternion.Quaternion.__truediv__ |
( |
|
self, |
|
|
|
scalar |
|
) |
| |
◆ conj()
def sophus.quaternion.Quaternion.conj |
( |
|
self | ) |
|
◆ Da_a_mul_b()
def sophus.quaternion.Quaternion.Da_a_mul_b |
( |
|
a, |
|
|
|
b |
|
) |
| |
|
static |
derivatice of quaternion muliplication wrt left multiplier a
Definition at line 81 of file quaternion.py.
◆ Db_a_mul_b()
def sophus.quaternion.Quaternion.Db_a_mul_b |
( |
|
a, |
|
|
|
b |
|
) |
| |
|
static |
derivatice of quaternion muliplication wrt right multiplicand b
Definition at line 93 of file quaternion.py.
◆ identity()
def sophus.quaternion.Quaternion.identity |
( |
| ) |
|
|
static |
◆ inv()
def sophus.quaternion.Quaternion.inv |
( |
|
self | ) |
|
◆ simplify()
def sophus.quaternion.Quaternion.simplify |
( |
|
self | ) |
|
◆ squared_norm()
def sophus.quaternion.Quaternion.squared_norm |
( |
|
self | ) |
|
squared norm when considering the quaternion as 4-tuple
Definition at line 47 of file quaternion.py.
◆ subs()
def sophus.quaternion.Quaternion.subs |
( |
|
self, |
|
|
|
x, |
|
|
|
y |
|
) |
| |
◆ zero()
def sophus.quaternion.Quaternion.zero |
( |
| ) |
|
|
static |
◆ real
sophus.quaternion.Quaternion.real |
◆ vec
sophus.quaternion.Quaternion.vec |
The documentation for this class was generated from the following file: