File: other.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 (99 lines) | stat: -rw-r--r-- 3,594 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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
[//]: # (generated using SlashBack 0.2.0)

  
# other methods  
The following methods are all part of the **other methods**\.  
PyGLM's custom functions\.  
## Table of contents  
  
* [**add** function](#add-function)  
* [**and\_** function](#and_-function)  
* [**cmp** function](#cmp-function)  
* [**div** function](#div-function)  
* [**floordiv** function](#floordiv-function)  
* [**if\_else** function](#if_else-function)  
* [**inv** function](#inv-function)  
* [**lshift** function](#lshift-function)  
* [**mul** function](#mul-function)  
* [**neg** function](#neg-function)  
* [**or\_** function](#or_-function)  
* [**pos** function](#pos-function)  
* [**quat\_to\_vec4** function](#quat_to_vec4-function)  
* [**rshift** function](#rshift-function)  
* [**silence** function](#silence-function)  
* [**sub** function](#sub-function)  
* [**vec4\_to\_quat** function](#vec4_to_quat-function)  
* [**xor** function](#xor-function)  
  
### add\(\) function  
#### <code>glm.<code>**add**(**a**, **b**) -\> *Any*</code></code>  
&emsp;&emsp;Equivalent to ``` a + b ```\.  
  
### and\_\(\) function  
#### <code>glm.<code>**and_**(**a**, **b**) -\> *Any*</code></code>  
&emsp;&emsp;Equivalent to ``` a & b ```\.  
  
### cmp\(\) function  
#### <code>glm.<code>**cmp**(**a**, **b**) -\> *Any*</code></code>  
&emsp;&emsp;Equivalent to ``` -1 if a < b else 1 if a > b else 0 ```\.  
  
### div\(\) function  
#### <code>glm.<code>**div**(**a**, **b**) -\> *Any*</code></code>  
&emsp;&emsp;Equivalent to ``` a / b ```\.  
  
### floordiv\(\) function  
#### <code>glm.<code>**floordiv**(**a**, **b**) -\> *Any*</code></code>  
&emsp;&emsp;Equivalent to ``` a // b ```\.  
  
### if\_else\(\) function  
#### <code>glm.<code>**if_else**(**b**, **x**, **y**) -\> *Any*</code></code>  
&emsp;&emsp;Equivalent to ``` x if b else y ```\.  
  
### inv\(\) function  
#### <code>glm.<code>**inv**(**a**) -\> *Any*</code></code>  
&emsp;&emsp;Equivalent to ``` ~a ```\.  
  
### lshift\(\) function  
#### <code>glm.<code>**lshift**(**a**, **b**) -\> *Any*</code></code>  
&emsp;&emsp;Equivalent to ``` a << b ```\.  
  
### mul\(\) function  
#### <code>glm.<code>**mul**(**a**, **b**) -\> *Any*</code></code>  
&emsp;&emsp;Equivalent to ``` a * b ```\.  
  
### neg\(\) function  
#### <code>glm.<code>**neg**(**a**) -\> *Any*</code></code>  
&emsp;&emsp;Equivalent to ``` -a ```\.  
  
### or\_\(\) function  
#### <code>glm.<code>**or_**(**a**, **b**) -\> *Any*</code></code>  
&emsp;&emsp;Equivalent to ``` a | b ```\.  
  
### pos\(\) function  
#### <code>glm.<code>**pos**(**a**) -\> *Any*</code></code>  
&emsp;&emsp;Equivalent to ``` +a ```\.  
  
### quat\_to\_vec4\(\) function  
#### <code>glm.<code>**quat_to_vec4**(**quat**) -\> *vec4*</code></code>  
&emsp;&emsp;Component wise conversion of quat to vec4\.  
  
### rshift\(\) function  
#### <code>glm.<code>**rshift**(**a**, **b**) -\> *Any*</code></code>  
&emsp;&emsp;Equivalent to ``` a >> b ```\.  
  
### silence\(\) function  
#### <code>glm.<code>**silence**(**ID**: *int*) -\> *None*</code></code>  
&emsp;&emsp;Silence a PyGLM warning \(or all using 0\)\.  
  
### sub\(\) function  
#### <code>glm.<code>**sub**(**a**, **b**) -\> *Any*</code></code>  
&emsp;&emsp;Equivalent to ``` a - b ```\.  
  
### vec4\_to\_quat\(\) function  
#### <code>glm.<code>**vec4_to_quat**(**vec4**) -\> *quat*</code></code>  
&emsp;&emsp;Component wise conversion of vec4 to quat\.  
  
### xor\(\) function  
#### <code>glm.<code>**xor**(**a**, **b**) -\> *Any*</code></code>  
&emsp;&emsp;Equivalent to ``` a ^ b ```\.