@@ -249,20 +249,7 @@ def compose(self, *others):
249
249
250
250
def get_matrix (self ):
251
251
"""
252
- Return a matrix which is the result of composing this transform
253
- with others stored in self.transforms. Where necessary transforms
254
- are broadcast against each other.
255
- For example, if self.transforms contains transforms t1, t2, and t3, and
256
- given a set of points x, the following should be true:
257
-
258
- .. code-block:: python
259
-
260
- y1 = t1.compose(t2, t3).transform(x)
261
- y2 = t3.transform(t2.transform(t1.transform(x)))
262
- y1.get_matrix() == y2.get_matrix()
263
-
264
- Returns:
265
- A transformation matrix representing the composed inputs.
252
+ Return the Nx4x4 homogeneous transformation matrix represented by this object.
266
253
"""
267
254
return self ._matrix
268
255
@@ -276,7 +263,7 @@ def _get_matrix_inverse(self):
276
263
@staticmethod
277
264
def _invert_transformation_matrix (T ):
278
265
"""
279
- Inverts homogeneous transformation matrix
266
+ Invert homogeneous transformation matrix.
280
267
"""
281
268
Tinv = T .clone ()
282
269
R = T [:, :3 , :3 ]
@@ -291,14 +278,7 @@ def inverse(self, invert_composed: bool = False):
291
278
current transformation.
292
279
293
280
Args:
294
- invert_composed:
295
- - True: First compose the list of stored transformations
296
- and then apply inverse to the result. This is
297
- potentially slower for classes of transformations
298
- with inverses that can be computed efficiently
299
- (e.g. rotations and translations).
300
- - False: Invert the individual stored transformations
301
- independently without composing them.
281
+ invert_composed: ignored, included for backwards compatibility
302
282
303
283
Returns:
304
284
A new Transform3D object containing the inverse of the original
0 commit comments