typedef double ASDouble, *ASDoubleP;
typedef float ASReal;
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
void ASDoubleMatrixConcat(ASDoubleMatrix *result, const ASDoubleMatrix *m1, const ASDoubleMatrix *m2);
result | (Filled by the method) A pointer to matrix
m2 x m1. It is allowed for the result to point to the same location as either m1 or m2. |
m1 | A pointer to the ASDoubleMatrix value for the first matrix to multiply.
|
m2 | A pointer to the ASDoubleMatrix value for the second matrix to multiply.
|
void ASDoubleMatrixConcat(ASDoubleMatrix *result, const ASDoubleMatrix *m1, const ASDoubleMatrix *m2);
result | (Filled by the method) A pointer to matrix
m2 x m1. It is allowed for the result to point to the same location as either m1 or m2. |
m1 | A pointer to the ASDoubleMatrix value for the first matrix to multiply.
|
m2 | A pointer to the ASDoubleMatrix value for the second matrix to multiply.
|
Inverts a matrix.
If a matrix is nearly singular (which means that it has a determinant that is nearly zero), inverting and re-inverting the matrix may not yield the original matrix.
void ASDoubleMatrixInvert(ASDoubleMatrix *result, const ASDoubleMatrix *m);
result | (Filled by the method) A pointer to
m-1. It is allowed for the result to point to the same location as m. |
m | A pointer to the ASDoubleMatrix to invert.
|
Inverts a matrix.
If a matrix is nearly singular (which means that it has a determinant that is nearly zero), inverting and re-inverting the matrix may not yield the original matrix.
void ASDoubleMatrixInvert(ASDoubleMatrix *result, const ASDoubleMatrix *m);
result | (Filled by the method) A pointer to
m-1. It is allowed for the result to point to the same location as m. |
m | A pointer to the ASDoubleMatrix to invert.
|
p through the matrix m, and puts the result in result. p and result can point to the same location. void ASDoubleMatrixTransform(ASDoublePoint *result, const ASDoubleMatrix *m, const ASDoublePoint *p);
result | (Filled by the method) A pointer to the ASDoublePoint containing the result of transforming
p through m. It is allowed for the result to point to the same location as m. |
m | A pointer to the ASDoubleMatrix through which
p is transformed. |
p | A pointer to the ASDoublePoint representing the point to transform through
m. |
p through the matrix m, and puts the result in result. p and result can point to the same location. void ASDoubleMatrixTransform(ASDoublePoint *result, const ASDoubleMatrix *m, const ASDoublePoint *p);
result | (Filled by the method) A pointer to the ASDoublePoint containing the result of transforming
p through m. It is allowed for the result to point to the same location as m. |
m | A pointer to the ASDoubleMatrix through which
p is transformed. |
p | A pointer to the ASDoublePoint representing the point to transform through
m. |
void ASDoubleMatrixTransformRect(ASDoubleRect *result, const ASDoubleMatrix *m, const ASDoubleRect *r);
result | (Filled by the method) A pointer to the ASDoubleRect containing the smallest bounding box for the transformed rectangle. It is allowed for the result to point to the same location as
m. result will always have bottom < top and left < right. |
m | A pointer to the ASDoubleMatrix containing the matrix through which
r is transformed. |
r | A pointer to the ASDoubleRect containing the rectangle to transform through
m. |
void ASDoubleMatrixTransformRect(ASDoubleRect *result, const ASDoubleMatrix *m, const ASDoubleRect *rectIn);
result | (Filled by the method) A pointer to the ASDoubleRect containing the smallest bounding box for the transformed rectangle. It is allowed for the result to point to the same location as
m. result will always have bottom < top and left < right. |
m | A pointer to the ASDoubleMatrix containing the matrix through which
r is transformed. |
r | A pointer to the ASDoubleRect containing the rectangle to transform through
m. |