Functions | |
static void | vm_M3Math::init_by_row (T_fp m[], T_fp const row0[], T_fp const row1[], T_fp const row2[]) |
static void | vm_M3Math::init_by_col (T_fp m[], T_fp const col0[], T_fp const col1[], T_fp const col2[]) |
static void | vm_M3Math::dyad_product (T_fp m[], T_fp const v1[], T_fp const v2[]) |
void vm_M3Math< T_fp >::dyad_product | ( | T_fp | m[], | |
T_fp const | v1[], | |||
T_fp const | v2[] | |||
) | [inline, static, inherited] |
Initialize a matrix to a dyadic (outer) product of vectors
For each i, j: m[at(i,j)] = v1[i] * v2[j]
m | matrix (as stored flat 1D array) | |
v1 | 1st vector | |
v2 | 2nd vector |
Definition at line 361 of file vm_m3math.h.
void vm_M3Math< T_fp >::init_by_col | ( | T_fp | m[], | |
T_fp const | col0[], | |||
T_fp const | col1[], | |||
T_fp const | col2[] | |||
) | [inline, static, inherited] |
Initialize matrix by column; set columns of m to col0, col1, col2.
m | matrix (as stored flat 1D array) | |
col0 | 1st column vector | |
col1 | 2nd column vector | |
col2 | 3rd column vector |
Definition at line 308 of file vm_m3math.h.
void vm_M3Math< T_fp >::init_by_row | ( | T_fp | m[], | |
T_fp const | row0[], | |||
T_fp const | row1[], | |||
T_fp const | row2[] | |||
) | [inline, static, inherited] |
Initialize matrix by row; set rows of m to row0, row1, row2.
m | matrix (as stored flat 1D array) | |
row0 | 1st row vector | |
row1 | 2nd row vector | |
row2 | 3rd row vector |
Definition at line 298 of file vm_m3math.h.