- graphicle.transform.rotation_matrix(angle: float, axis: SphericalAngle) ndarray[Any, dtype[float64]][source]
Computes the matrix operator to rotate a 3D vector with respect to an arbitrary
axisby a givenangle.New in version 0.4.0.
- Parameters:¶
- angle : float¶
Desired angular displacement after matrix multiplication.
- axis : SphericalAngle¶
Inclination and azimuthal angles, defining the axis about which the rotation is to be performed.
- Returns:¶
A 3x3 matrix which, when acting to the left of a 3D vector, will rotate it about the provided
axisby the givenangle.- Return type:¶
ndarray[float64]
Notes
This is a matrix implementation of Rodrigues’ rotation formula [1].
References
Last update:
Jun 27, 2025