Antiprism 0.23
|
Matrix transformations for 4D geometry. More...
Classes | |
class | mat4d |
Matrix for transformations in 4D. More... | |
Functions | |
vec4d | operator* (const mat4d &mat, const vec4d &v) |
Transform a column vector. | |
vec4d | operator* (const vec4d &v, const mat4d &mat) |
Transform a row vector. | |
mat4d | operator* (const mat4d &m1, const mat4d &m2) |
Multiply two matrices. | |
mat4d | operator* (double n, const mat4d &mat) |
Multiply a matrix by a scalar. | |
mat4d | operator* (const mat4d &mat, double n) |
Multiply a matrix by a scalar. | |
mat4d | operator+ (const mat4d &m1, const mat4d &m2) |
Add two matrices. |
Matrix transformations for 4D geometry.
Transform a column vector.
mat | the transformation matrix. |
v | the column vector. |
Transform a row vector.
v | the column vector. |
mat | the transformation matrix. |
Multiply a matrix by a scalar.
mat | the matrix. |
n | the scalar. |
Multiply a matrix by a scalar.
n | the scalar. |
mat | the matrix. |
Multiply two matrices.
m1 | the first matrix. |
m2 | the second matrix. |