# Examples from pyvista.core._validation.validate.validate_rotation
# =================================================================

# Validate a rotation matrix. The identity matrix is used as a toy example.
import numpy as np
from pyvista import _validation
rotation = np.eye(3)
_validation.validate_rotation(rotation)

# By default, left-handed rotations (which include reflections) are allowed.
rotation *= -1  # Add reflections
_validation.validate_rotation(rotation)

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

