[Top]
Math
Math.Matrix
|
Method Math.Matrix()->create()
- Method
create
void Math.Matrix(array(array(int|float)) matrix_2d)
void Math.Matrix(array(int|float) matrix_1d)
- Description
Initializes the matrix as a 1D or 2D matrix, e.g.
Math.Matrix( ({({1,2}),({3,4})}) ) .
- Method
create
void Math.Matrix(int n, int m)
void Math.Matrix(int n, int m, string type)
void Math.Matrix(int n, int m, float|int init)
- Description
Initializes the matrix as to be a n *m matrix with init in
every value. If no third argument is given, or the third argument
is "identity" , the matrix will be initialized with all
zeroes except for the diagonal which will be 1 .
- Method
create
void Math.Matrix(string type, int size)
- Description
When type is "identity" the matrix is initializes as a
square identity matrix.
- Method
create
void Math.Matrix(string type, int size, float rads, Matrix axis)
void Math.Matrix(string type, int size, float rads, float x, float y, float z)
- Description
When type is "rotate" the matrix is initialized as a
rotation matrix.
|