Added function variants to the Quaternion class.