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

Method homogeneous_matrix

plib/rigid_motion.py:27–33  ·  view source on GitHub ↗

returns the 4*4 homogeneous matrix.

(self)

Source from the content-addressed store, hash-verified

25 self.t = copy.deepcopy(np.reshape(t, (3, 1))) # 3*1 position
26
27 def homogeneous_matrix(self):
28 """returns the 4*4 homogeneous matrix."""
29 H = np.zeros((4, 4))
30 H[0:3, 0:3] = self.R
31 H[0:3, 3:4] = self.t
32 H[3, 3] = 1
33 return H
34
35 @staticmethod
36 def invert_homogeneous_matrix(H: np.ndarray) -> np.ndarray:

Callers 4

multiplyMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected