Function
Apply standard matrix operations.
Syntax
#include <dx/dx.h>
Matrix DXConcatenate(Matrix s, Matrix t)
Matrix DXInvert(Matrix t)
Matrix DXTranspose(Matrix t)
Matrix DXAdjointTranspose(Matrix t)
float DXDeterminant(Matrix t)
Vector DXApply(Vector v, Matrix t)
Functional Details
DXConcatenate returns a Matrix that is equivalent to transformation matrix s followed by transformation matrix t.
DXInvert, DXTranspose, DXAdjointTranspose, and DXDeterminant compute the matrix inverse, transpose, and adjoint transpose, and determinant, respectively.
DXApply applies matrix transformation t to v.
A
Matrix
is defined as follows:
typedef struct matrix {
/* xA + b * /
float A[3][3]
float b[3];
} Matrix
A
Point
and
Vector
is defined as follows:
typedef struct point {
float x, y, z;
} Point, Vector;
Return Value
Always returns the result of the operation.
See Also
DXApplyTransform, DXRotateX, DXRotateY, DXRotateZ, DXScale, DXTranslate, DXMat