File: func_matrix.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 (39 lines) | stat: -rw-r--r-- 1,765 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
[//]: # (generated using SlashBack 0.2.0)

  
# func\_matrix methods  
The following methods are all part of the **func\_matrix methods**\.  
It contains GLSL matrix functions\.  
## Table of contents  
  
* [**determinant** function](#determinant-function)  
* [**inverse** function](#inverse-function)  
* [**matrixCompMult** function](#matrixcompmult-function)  
* [**outerProduct** function](#outerproduct-function)  
* [**transpose** function](#transpose-function)  
  
### determinant\(\) function  
#### <code>glm.<code>**determinant**(**m**: *matSxS*) -\> *float*</code></code>  
&emsp;&emsp;Return the determinant of a squared matrix\.  
  
### inverse\(\) function  
#### <code>glm.<code>**inverse**(**m**: *matSxS*) -\> *matSxS*</code></code>  
&emsp;&emsp;Return the inverse of a squared matrix\.  
  
#### <code>glm.<code>**inverse**(**q**: *quat*) -\> *quat*</code></code>  
&emsp;&emsp;Return the inverse of a quaternion\.  
  
### matrixCompMult\(\) function  
#### <code>glm.<code>**matrixCompMult**(**x**: *matNxM*, **y**: *matNxM*) -\> *matNxM*</code></code>  
&emsp;&emsp;Multiply matrix ``` x ``` by matrix ``` y ``` component\-wise, i\.e\., ``` result[i][j] ``` is the scalar product of  
&emsp;&emsp;``` x[i][j] ``` and ``` y[i][j] ```\.  
  
### outerProduct\(\) function  
#### <code>glm.<code>**outerProduct**(**c**: *vecC*, **r**: *vecR*) -\> *matRxC*</code></code>  
&emsp;&emsp;Treats the first parameter ``` c ``` as a column vector and the second parameter ``` r ``` as a row vector  
&emsp;&emsp;and does a linear algebraic matrix multiply ``` c * r ```\.  
  
### transpose\(\) function  
#### <code>glm.<code>**transpose**(**x**: *matNxM*) -\> *matMxN*</code></code>  
&emsp;&emsp;Returns the transposed matrix of ``` x ```\.