MCPcopy Create free account
hub / github.com/HYUNJS/SGT / get_dir

Function get_dir

projects/Datasets/Transforms/augmentation.py:11–16  ·  view source on GitHub ↗
(src_point, rot_rad)

Source from the content-addressed store, hash-verified

9
10
11def get_dir(src_point, rot_rad):
12 sn, cs = np.sin(rot_rad), np.cos(rot_rad)
13 src_result = [0, 0]
14 src_result[0] = src_point[0] * cs - src_point[1] * sn
15 src_result[1] = src_point[0] * sn + src_point[1] * cs
16 return src_result
17
18
19def get_3rd_point(a, b):

Callers 1

generate_src_and_dstMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected