MCPcopy Create free account
hub / github.com/apple/ml-pointersect / multiply

Method multiply

plib/rigid_motion.py:168–171  ·  view source on GitHub ↗

returns H0 * H1 in RigidMotion

(H0, H1)

Source from the content-addressed store, hash-verified

166
167 @staticmethod
168 def multiply(H0, H1):
169 """returns H0 * H1 in RigidMotion"""
170 HM = H0.homogeneous_matrix() @ H1.homogeneous_matrix()
171 return RigidMotion(R=HM[:3, :3], t=HM[:3, 3])
172
173 @staticmethod
174 def interp(t: float, H0: 'RigidMotion', H1: 'RigidMotion') -> 'RigidMotion':

Callers 1

interpMethod · 0.80

Calls 2

RigidMotionClass · 0.85
homogeneous_matrixMethod · 0.80

Tested by

no test coverage detected