# Examples from pyvista.Transform.rotation_matrix
# ===============================================

# Compose a rotation about the z-axis.
import pyvista as pv
trans = pv.Transform().rotate_z(90)

# Get the rotation matrix.
trans.rotation_matrix

# Compose a second rotation and get the rotation matrix again.
_ = trans.rotate_y(-90)
trans.rotation_matrix

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

