MaxstAR Native iOS  5.0.2
List of all members | Class Methods
MasMatrixUtil Class Reference

Description

MasMatrixUtil class provide utility functions concerning matrix.

Inherits NSObject.

Class Methods

(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...
 

Method Documentation

◆ floatArrayForMatrix

+ (const float *) floatArrayForMatrix: (matrix_float4x4)  matrix

Convert matrix_float4x4 to a float array.

Parameters
datamatrix_float4x4
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
dataa 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
xangle with respect to x axis
yangle with respect to y axis
zangle 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
xangle with respect to x axis
yangle with respect to y axis
zangle 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
xx scale
yy scale
zz 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
xx coordinate
yy coordinate
zz 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
xx coordinate
yy coordinate
zz cooridnate
Returns
matrix_float4x4 including traslation