Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Make Rotation matrix in Python

In [x]: theta = np.radians(30)
In [x]: c, s = np.cos(theta), np.sin(theta)
In [x]: R = np.array(((c, -s), (s, c)))
Out[x]: print(R) 
[[ 0.8660254 -0.5      ]
 [ 0.5        0.8660254]]
Source by scipython.com #
 
PREVIOUS NEXT
Tagged: #Make #Rotation #matrix #Python
ADD COMMENT
Topic
Name
3+3 =