Rx

pycraf.geometry.Rx(angle)[source] [edit on github]

Construct rotation matrix about x-axis.

Parameters
angleQuantity

Rotation angle [deg]

Returns
Rxarray

Rotation matrix [no units!]

Notes

Broadcasting is supported. Rotation matrices can be (matrix-multiplied) with dot, however, if you want to multiply stacks of matrices use the new matmul function.