newton.utils.quat_between_vectors_robust#
- newton.utils.quat_between_vectors_robust(from_vec, to_vec, eps=1.0e-8)[source]#
Robustly compute the quaternion that rotates
from_vectoto_vec.This is a safer version of
warp.quat_between_vectors()that handles the anti-parallel (180-degree) singularity by selecting a deterministic axis orthogonal tofrom_vec.