Answers for "Make Rotation matrix in Python"

0

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]]
Posted by: Guest on April-18-2021

Code answers related to "Make Rotation matrix in Python"

Python Answers by Framework

Browse Popular Code Answers by Language