Represent as a 4x4 matrix.
(self)
| 32 | self.translation = np.asarray(translation, np.double) |
| 33 | |
| 34 | def as_matrix(self): |
| 35 | """Represent as a 4x4 matrix.""" |
| 36 | return np.vstack( |
| 37 | (np.c_[self.rotation.as_matrix(), self.translation], [0.0, 0.0, 0.0, 1.0]) |
| 38 | ) |
| 39 | |
| 40 | def to_dict(self): |
| 41 | """Serialize Transform object into a dictionary.""" |
no outgoing calls
no test coverage detected