align_vectors#
- align_vectors(base, target=(0, 0, 1), **kwargs)[source]#
Compute the rotation matrix or Euler angles required to align an initial vector with a target vector.
- Parameters:
- baseNDArray
The basis vector.
- targetNDArray, optional
The vector to map base to, defaults to (0,0,1).
- seqstr
Output convention.
Deprecated since version 0.3.2: Returns rotation matrices always.
- Returns:
- NDArray
Rotation matrix mapping base to target.