MCPcopy Create free account
hub / github.com/OpenMeshLab/MeshXL / heading2rotmat

Function heading2rotmat

utils/pc_util.py:188–195  ·  view source on GitHub ↗
(heading_angle)

Source from the content-addressed store, hash-verified

186 """
187
188 def heading2rotmat(heading_angle):
189 pass
190 rotmat = np.zeros((3, 3))
191 rotmat[2, 2] = 1
192 cosval = np.cos(heading_angle)
193 sinval = np.sin(heading_angle)
194 rotmat[0:2, 0:2] = np.array([[cosval, -sinval], [sinval, cosval]])
195 return rotmat
196
197 def convert_oriented_box_to_trimesh_fmt(box):
198 ctr = box[:3]

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected