MCPcopy Create free account
hub / github.com/DSL-Lab/StreamSplat / rotate2d

Function rotate2d

datasets/augmentv2.py:114–119  ·  view source on GitHub ↗
(theta, **kwargs)

Source from the content-addressed store, hash-verified

112 **kwargs)
113
114def rotate2d(theta, **kwargs):
115 return matrix(
116 [torch.cos(theta), torch.sin(-theta), 0],
117 [torch.sin(theta), torch.cos(theta), 0],
118 [0, 0, 1],
119 **kwargs)
120
121def rotate3d(v, theta, **kwargs):
122 vx = v[..., 0]; vy = v[..., 1]; vz = v[..., 2]

Callers 1

rotate2d_invFunction · 0.85

Calls 1

matrixFunction · 0.85

Tested by

no test coverage detected