File: quaternion_trigonometric.md

package info (click to toggle)
python-pyglm 2.8.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,008 kB
  • sloc: cpp: 53,029; python: 3,683; makefile: 7
file content (24 lines) | stat: -rw-r--r-- 897 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
[//]: # (generated using SlashBack 0.2.0)

  
# quaternion\_trigonometric methods  
The following methods are all part of the **quaternion\_trigonometric methods**\.  
Provides trigonometric functions for quaternion types\.  
## Table of contents  
  
* [**angle** function](#angle-function)  
* [**angleAxis** function](#angleaxis-function)  
* [**axis** function](#axis-function)  
  
### angle\(\) function  
#### <code>glm.<code>**angle**(**x**: *quat*) -\> *float*</code></code>  
&emsp;&emsp;Returns the quaternion rotation angle\.  
  
### angleAxis\(\) function  
#### <code>glm.<code>**angleAxis**(**angle**: *float*, **axis**: *vec3*) -\> *quat*</code></code>  
&emsp;&emsp;Build a quaternion from an angle and a normalized axis\.  
  
### axis\(\) function  
#### <code>glm.<code>**axis**(**x**: *quat*) -\> *vec3*</code></code>  
&emsp;&emsp;Returns the ``` q ``` rotation axis\.