GMISC - Miscellaneous Routines header file.
Definition in file gmisc.h.
|
void | gmiscArrayConvert (ArrayDataFormat srcfmt, void *src, ArrayDataFormat dstfmt, void *dst, gMemSize cnt) |
| Convert from one array format to another array format. More...
|
|
float | invsqrt (float n) |
| Fast inverse square root function (x^-1/2) More...
|
|
void | gmiscMatrixFloat2DApplyToPoints (gPoint *dst, const gPoint *src, const MatrixFloat2D *m, int cnt) |
| Apply the matrix to a set of points. More...
|
|
void | gmiscMatrixFloat2DSetIdentity (MatrixFloat2D *m) |
| Set the 2D matrix to the identity matrix. More...
|
|
void | gmiscMatrixFloat2DMultiply (MatrixFloat2D *dst, const MatrixFloat2D *src1, const MatrixFloat2D *src2) |
| Multiple two 2D matrixes together. More...
|
|
void | gmiscMatrixFloat2DApplyTranslation (MatrixFloat2D *dst, const MatrixFloat2D *src, float tx, float ty) |
| Add an x,y translation to a matrix. More...
|
|
void | gmiscMatrixFloat2DApplyScale (MatrixFloat2D *dst, const MatrixFloat2D *src, float sx, float sy) |
| Add x,y scaling to a matrix. More...
|
|
void | gmiscMatrixFloat2DApplyShear (MatrixFloat2D *dst, const MatrixFloat2D *src, float sx, float sy) |
| Add x,y shear to a matrix. More...
|
|
void | gmiscMatrixFloat2DApplyRotation (MatrixFloat2D *dst, const MatrixFloat2D *src, int angle) |
| Add rotation to a matrix. More...
|
|
void | gmiscMatrixFixed2DApplyToPoints (gPoint *dst, const gPoint *src, const MatrixFixed2D *m, int cnt) |
| Apply the matrix to a set of points. More...
|
|
void | gmiscMatrixFixed2DSetIdentity (MatrixFixed2D *m) |
| Set the 2D matrix to the identity matrix. More...
|
|
void | gmiscMatrixFixed2DMultiply (MatrixFixed2D *dst, const MatrixFixed2D *src1, const MatrixFixed2D *src2) |
| Multiple two 2D matrixes together. More...
|
|
void | gmiscMatrixFixed2DApplyTranslation (MatrixFixed2D *dst, const MatrixFixed2D *src, fixed tx, fixed ty) |
| Add an x,y translation to a matrix. More...
|
|
void | gmiscMatrixFixed2DApplyScale (MatrixFixed2D *dst, const MatrixFixed2D *src, fixed sx, fixed sy) |
| Add x,y scaling to a matrix. More...
|
|
void | gmiscMatrixFixed2DApplyShear (MatrixFixed2D *dst, const MatrixFixed2D *src, fixed sx, fixed sy) |
| Add x,y shear to a matrix. More...
|
|
void | gmiscMatrixFixed2DApplyRotation (MatrixFixed2D *dst, const MatrixFixed2D *src, int angle) |
| Add rotation to a matrix. More...
|
|
gBool | gmiscHittestPoly (const gPoint *pntarray, unsigned cnt, const gPoint *p) |
| Check whether a point is inside or on the edge of a polygon. More...
|
|
|
double | fsin (int degrees) |
| Fast Table Based Trig functions. More...
|
|
|
fixed | ffsin (int degrees) |
| Fast Table Based Trig functions. More...
|
|