ParallelHoleCollimatorGeometry.rotation_matrix¶
- ParallelHoleCollimatorGeometry.rotation_matrix(angle)¶
Return the rotation matrix to the system state at
angle
.The matrix is computed according to Rodrigues' rotation formula.
- Parameters:
- anglefloat or
array-like
Angle(s) in radians describing the counter-clockwise rotation of the system around
axis
.
- anglefloat or
- Returns:
- rot
numpy.ndarray
The rotation matrix (or matrices) mapping vectors at the initial state to the ones in the state defined by
angle
. The rotation is extrinsic, i.e., defined in the "world" coordinate system. Ifangle
is a single parameter, the returned array has shape(3, 3)
, otherwiseangle.shape + (3, 3)
.
- rot