Quaternion dot function added.