Source: https://graphics.stanford.edu/papers/stabilization/karpenko_gyro.pdf