moirepy.utils.get_rotation_matrix
Return the 2D counterclockwise rotation matrix.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
theta_rad
|
float
|
Rotation angle in radians. |
required |
Returns:
| Type | Description |
|---|---|
ndarray
|
Rotation matrix of shape |
Examples:
>>> get_rotation_matrix(np.pi / 2)
array([[ 6.123234e-17, -1.000000e+00],
[ 1.000000e+00, 6.123234e-17]])