QuaternionLerp function
Linear interpolation (not normalized).
Implementation
Quaternion QuaternionLerp(Quaternion q1, Quaternion q2, double amount) =>
Quaternion(
q1.x + (q2.x - q1.x) * amount,
q1.y + (q2.y - q1.y) * amount,
q1.z + (q2.z - q1.z) * amount,
q1.w + (q2.w - q1.w) * amount,
);