MasMatrixUtil class provide utility functions concerning matrix.
Inherits NSObject.
|
| (matrix_float4x4) | + makeMatrix |
| | Convert a float array with 16 elements to matrix_float4x4. More...
|
| |
| (matrix_float4x4) | + translation |
| | make matrix_float4x4 which traslates by x, y, and z coordinate. More...
|
| |
| (matrix_float4x4) | + translate |
| | make matrix_float4x4 which traslates a given transformation by x, y, z coordinate. More...
|
| |
| (matrix_float4x4) | + rotation |
| | make matrix_float4x4 which rotates by angles (radian) with respect to x, y, and z axis. More...
|
| |
| (matrix_float4x4) | + rotate |
| | make matrix_float4x4 which rotates a given transformation by angles (radian) with respect to x, y, and z axis. More...
|
| |
| (matrix_float4x4) | + scale |
| | make matrix_float4x4 which scales by x, y, and z scale. More...
|
| |
| (const float *) | + floatArrayForMatrix |
| | Convert matrix_float4x4 to a float array. More...
|
| |
◆ floatArrayForMatrix
| + (const float *) floatArrayForMatrix: |
|
(matrix_float4x4) |
matrix |
|
Convert matrix_float4x4 to a float array.
- Parameters
-
- Returns
- a float array converted from matrix_float4x4
◆ makeMatrix
| + (matrix_float4x4) makeMatrix: |
|
(float*) |
data |
|
Convert a float array with 16 elements to matrix_float4x4.
- Parameters
-
| data | a float array with 16 elements |
- Returns
- matrix_float4x4 converted from the float array
◆ rotate
| + (matrix_float4x4) rotate: |
|
(float) |
x |
| y: |
|
(float) |
y |
| z: |
|
(float) |
z |
| matrix: |
|
(matrix_float4x4) |
matrix |
|
|
| |
make matrix_float4x4 which rotates a given transformation by angles (radian) with respect to x, y, and z axis.
- Parameters
-
| x | angle with respect to x axis |
| y | angle with respect to y axis |
| z | angle with respect to z axis |
- Returns
- matrix_float4x4
◆ rotation
| + (matrix_float4x4) rotation: |
|
(float) |
x |
| y: |
|
(float) |
y |
| z: |
|
(float) |
z |
|
|
| |
make matrix_float4x4 which rotates by angles (radian) with respect to x, y, and z axis.
- Parameters
-
| x | angle with respect to x axis |
| y | angle with respect to y axis |
| z | angle with respect to z axis |
- Returns
- matrix_float4x4 including rotation
◆ scale
| + (matrix_float4x4) scale: |
|
(float) |
x |
| y: |
|
(float) |
y |
| z: |
|
(float) |
z |
|
|
| |
make matrix_float4x4 which scales by x, y, and z scale.
- Parameters
-
| x | x scale |
| y | y scale |
| z | z scale |
- Returns
- matrix_float4x4 including scale
◆ translate
| + (matrix_float4x4) translate: |
|
(float) |
x |
| positionY: |
|
(float) |
y |
| positionZ: |
|
(float) |
z |
| matrix: |
|
(matrix_float4x4) |
matrix |
|
|
| |
make matrix_float4x4 which traslates a given transformation by x, y, z coordinate.
- Parameters
-
| x | x coordinate |
| y | y coordinate |
| z | z cooridnate |
- Returns
- matrix_float4x4
◆ translation
| + (matrix_float4x4) translation: |
|
(float) |
x |
| y: |
|
(float) |
y |
| z: |
|
(float) |
z |
|
|
| |
make matrix_float4x4 which traslates by x, y, and z coordinate.
- Parameters
-
| x | x coordinate |
| y | y coordinate |
| z | z cooridnate |
- Returns
- matrix_float4x4 including traslation