viam.spatialmath.rotation_matrix

Classes

RotationMatrix

A 3x3 rotation matrix backed by the spatialmath FFI.

Module Contents

class viam.spatialmath.rotation_matrix.RotationMatrix(elements: Sequence[float])[source]

A 3x3 rotation matrix backed by the spatialmath FFI.

elements is a 9-value list in row-major order: elements[3*row + col] is the entry at (row, col).

__slots__ = ('_handle', '__weakref__')
property elements: List[float]
to_quaternion()[source]
__repr__() str[source]