axis_to_rotation_matrix#
- static Quaternion.axis_to_rotation_matrix(x_axis: tuple | list, y_axis: tuple | list, z_axis: tuple | list) tuple#
Construct a rotation matrix from three orthonormal axes.
- Parameters:
- Returns:
tupleoftuplesA 3x3 rotation matrix where each column is one of the given axes.
- Raises:
ValueErrorIf the axes do not form an orthonormal basis.
Examples
>>> from ansys.aedt.core.generic.quaternion import Quaternion >>> Quaternion.axis_to_rotation_matrix((1.0, 0.0, 0.0), (0.0, 1.0, 0.0), (0.0, 0.0, 1.0)) ((1.0, 0.0, 0.0), (0.0, 1.0, 0.0), (0.0, 0.0, 1.0))