# Examples from pyvista.Transform.rotation_axis_angle
# ===================================================

# Compose a rotation from a vector and angle.
import pyvista as pv
trans = pv.Transform().rotate_vector((1, 2, 3), 30)

# Get the rotation axis and angle.
axis, angle = trans.rotation_axis_angle
axis
angle

# Compose a second rotation around the same axis and get the axis and angle again.
_ = trans.rotate_vector((1, 2, 3), 40)
axis, angle = trans.rotation_axis_angle
axis
angle

# ----------------------------------------------------------------------
# Generated by sphinx-examples-as-code https://github.com/pyvista/sphinx-examples-as-code

