MCPcopy Create free account
hub / github.com/geekcomputers/Python / projection

Function projection

linear-algebra-python/src/Transformations2D.py:24–33  ·  view source on GitHub ↗
(angle)

Source from the content-addressed store, hash-verified

22
23
24def projection(angle):
25 arr = np.empty([2, 2])
26 c = np.cos(angle)
27 s = np.sin(angle)
28 arr[0][0] = c * c
29 arr[0][1] = c * s
30 arr[1][0] = c * s
31 arr[1][1] = s * s
32
33 return arr # This returns a rotation matrix
34
35
36def reflection(angle):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected