MCPcopy Create free account
hub / github.com/10Ring/LAA-Net / get_dir

Function get_dir

package_utils/transform.py:10–17  ·  view source on GitHub ↗
(src_point, rot_rad)

Source from the content-addressed store, hash-verified

8
9
10def get_dir(src_point, rot_rad):
11 sn, cs = np.sin(rot_rad), np.cos(rot_rad)
12
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
17 return src_result
18
19
20def get_3rd_point(a, b):

Callers 1

get_affine_transformFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected