slerp static method

Quaternion slerp(
  1. Quaternion q0,
  2. Quaternion q1,
  3. double t, {
  4. double epsilon = 10e-6,
})

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;
}