slerp static method
Implementation
static Quaternion slerp(
Quaternion q0,
Quaternion q1,
double t, {
double epsilon = 10e-6,
}) {
final result = _slerp(q0, q1, t, epsilon: epsilon);
if (result.storage.any((e) => e.isNaN || e.isInfinite)) {
throw Exception(
'Quaternion slerp result is invalid: slerp($q0, $q1) = $result',
);
}
return result;
}