class_docstr: Rotation in 3 dimensions.
class_docstr_tok: ["Rotation","in","3","dimensions","."]
docstr: Initialize from quaternions.
docstr_tok: ["Initialize","from","quaternions","."]
code: def from_quat(cls, quat: jax.Array):
      """Initialize from quaternions."""
      return cls(_normalize_quaternion(quat))
  
imports: from __future__ import annotations
  import functools
  import re
  import typing
  import scipy.spatial.transform
  import jax
  import jax.numpy
  from jax._src.numpy.util import _wraps
label_desc: Use image node_id 5 for calling the Rotation obj's underlying member method code with example usage: obj.from_quat(cls, quat) and returns: cls