Quaternions in sphere physics