Class for rotation matrices.
More...
|
def | __init__ (self, arg=None) |
| Construct a RotMat object. More...
|
|
def | conv_from (self, src) |
| Converts src to a rotation matrix.
|
|
def | set_identity (self) |
| Set to identity.
|
|
def | rotate (self, p) |
| Rotate a point.
|
|
def | __mul__ (self, other) |
| Chains two matrices.
|
|
def | to_quat (self, h) |
| Converts to a quaternion and store in h.
|
|
def | to_rotmat (self, r) |
| Converts (copy) to a rotation matrix and store in.
|
|
def | to_axang (self, a) |
| Converts to an axis-angle and store in a.
|
|
def | ln (self) |
| Returns the natural logarithm.
|
|
def | __invert__ (self) |
| Returns the inverse.
|
|
def | __getitem__ (self, key) |
|
def | __setitem__ (self, key, item) |
|
def | rows (self) |
| Number of rows.
|
|
def | cols (self) |
| Number of columns.
|
|
def | __repr__ (self) |
|
def | isclose (self, other, tol=1e-9) |
| Returns True if self is within tol rotation angle to other.
|
|
Class for rotation matrices.
Definition at line 694 of file tf.py.
◆ __init__()
def amino.tf.RotMat.__init__ |
( |
|
self, |
|
|
|
arg = None |
|
) |
| |
Construct a RotMat object.
* If arg is None, the object is unitialized.
* If arg is 1, the object is the identity rotation matrix.
* Else arg is converted to a rotation matrix.
Definition at line 706 of file tf.py.
◆ ensure()
def amino.tf.RotMat.ensure |
( |
|
thing | ) |
|
|
static |
Ensures thing is a RotMat.
If it's not, convert it.
Definition at line 733 of file tf.py.
The documentation for this class was generated from the following file:
- /home/ntd/git/amino/python/amino/tf.py