1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
|
[//]: # (generated using SlashBack 0.2.0)
# quaternion\_common methods
The following methods are all part of the **quaternion\_common methods**\.
Provides common functions for quaternion types\.
## Table of contents
* [**conjugate** function](#conjugate-function)
* [**lerp** function](#lerp-function)
* [**slerp** function](#slerp-function)
### conjugate\(\) function
#### <code>glm.<code>**conjugate**(**q**: *quat*) -\> *quat*</code></code>
  Returns the ``` q ``` conjugate\.
### lerp\(\) function
#### <code>glm.<code>**lerp**(**x**: *float*, **y**: *float*, **a**: *float*) -\> *float*</code></code>
  Returns ``` x * (1.0 - a) + y * a ```, i\.e\., the linear blend of ``` x ``` and ``` y ``` using the
  floating\-point value ``` a ```\. The value for ``` a ``` is not restricted to the range ``` [0, 1] ```\.
#### <code>glm.<code>**lerp**(**x**: *vecN*, **y**: *vecN*, **a**: *float*) -\> *vecN*</code></code>
  Returns ``` x * (1.0 - a) + y * a ```, i\.e\., the linear blend of ``` x ``` and ``` y ``` using the
  floating\-point value ``` a ```\. The value for ``` a ``` is not restricted to the range ``` [0, 1] ```\.
#### <code>glm.<code>**lerp**(**x**: *vecN*, **y**: *vecN*, **a**: *vecN*) -\> *vecN*</code></code>
  Returns ``` x * (1.0 - a) + y * a ```, i\.e\., the linear blend of ``` x ``` and ``` y ``` using the
  vector ``` a ```\. The value for ``` a ``` is not restricted to the range ``` [0, 1] ```\.
#### <code>glm.<code>**lerp**(**x**: *quat*, **y**: *quat*, **a**: *float*) -\> *quat*</code></code>
  Linear interpolation of two quaternions\. The interpolation is oriented\.
### slerp\(\) function
#### <code>glm.<code>**slerp**(**x**: *quat*, **y**: *quat*, **a**: *float*) -\> *quat*</code></code>
  Spherical linear interpolation of two quaternions\. The interpolation always take the short
  path and the rotation is performed at constant speed\.
#### <code>glm.<code>**slerp**(**x**: *vec3*, **y**: *vec3*, **a**: *float*) -\> *vec3*</code></code>
  Returns Spherical interpolation between two vectors\.
|