#include "sciMatrix.h"Include dependency graph for Vect2Matrix.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
Typedefs | |
| typedef sciMatrix | Vect2iMatrix |
| typedef sciMatrix | Vect2dMatrix |
Functions | |
| int * | getVect2iMatElement (const Vect2iMatrix *mat, int row, int col) |
| void | copyVect2iMatElement (Vect2iMatrix *mat, int row, int col, const int copyValue[2]) |
| void | rotateVect2iMatrix (Vect2iMatrix *mat, int center[2], double angle) |
| void | translateVect2iMatrix (Vect2iMatrix *mat, int trans[2]) |
| void | homothVect2iMatrix (Vect2iMatrix *mat, int center[2], double factors[2]) |
| double * | getVect2dMatElement (const Vect2dMatrix *mat, int row, int col) |
| void | copyVect2dMatElement (Vect2dMatrix *mat, int row, int col, const double copyValue[2]) |
| void | translateVect2dMatrix (Vect2dMatrix *mat, double trans[2]) |
| void | rotateVect2dMatrix (Vect2dMatrix *mat, double center[2], double angle) |
| void | homothVect2dMatrix (Vect2dMatrix *mat, double center[2], double factors[2]) |
| typedef sciMatrix Vect2dMatrix |
Definition at line 40 of file Vect2Matrix.h.
| typedef sciMatrix Vect2iMatrix |
Definition at line 16 of file Vect2Matrix.h.
| void copyVect2dMatElement | ( | Vect2dMatrix * | mat, | |
| int | row, | |||
| int | col, | |||
| const double | copyValue[2] | |||
| ) |
Definition at line 75 of file Vect2Matrix.c.
References copyMatElement(), and mat.
00079 { 00080 copyMatElement( mat, row, col, copyValue, 2 * sizeof(double) ) ; 00081 }
Here is the call graph for this function:

| void copyVect2iMatElement | ( | Vect2iMatrix * | mat, | |
| int | row, | |||
| int | col, | |||
| const int | copyValue[2] | |||
| ) |
Definition at line 18 of file Vect2Matrix.c.
References copyMatElement(), and mat.
Referenced by getStringsRect().
00022 { 00023 copyMatElement( mat, row, col, copyValue, 2 * sizeof(int) ) ; 00024 }
Here is the call graph for this function:

Here is the caller graph for this function:

| double* getVect2dMatElement | ( | const Vect2dMatrix * | mat, | |
| int | row, | |||
| int | col | |||
| ) |
Definition at line 70 of file Vect2Matrix.c.
References getMatElement(), and mat.
Referenced by homothVect2dMatrix(), rotateVect2dMatrix(), and translateVect2dMatrix().
00071 { 00072 return (double *) getMatElement( mat, row, col ) ; 00073 }
Here is the call graph for this function:

Here is the caller graph for this function:

| int* getVect2iMatElement | ( | const Vect2iMatrix * | mat, | |
| int | row, | |||
| int | col | |||
| ) |
Definition at line 13 of file Vect2Matrix.c.
References getMatElement(), and mat.
Referenced by computeSuitableFont(), drawStringsInPosition(), homothVect2iMatrix(), rotateVect2iMatrix(), and translateVect2iMatrix().
00014 { 00015 return (int *) getMatElement( mat, row, col ) ; 00016 }
Here is the call graph for this function:

Here is the caller graph for this function:

| void homothVect2dMatrix | ( | Vect2dMatrix * | mat, | |
| double | center[2], | |||
| double | factors[2] | |||
| ) |
Definition at line 113 of file Vect2Matrix.c.
References getVect2dMatElement(), homothety2D(), i, j, and mat.
00114 { 00115 int i ; 00116 int j ; 00117 for ( i = 0 ; i < mat->nbRow; i++ ) 00118 { 00119 for ( j = 0 ; j < mat->nbCol ; j++ ) 00120 { 00121 double * curElement = getVect2dMatElement( mat, i, j ) ; 00122 homothety2D( curElement, center, factors, curElement ) ; 00123 } 00124 } 00125 }
Here is the call graph for this function:

| void homothVect2iMatrix | ( | Vect2iMatrix * | mat, | |
| int | center[2], | |||
| double | factors[2] | |||
| ) |
Definition at line 56 of file Vect2Matrix.c.
References getVect2iMatElement(), i, iHomothety2D(), j, and mat.
Referenced by getStringsRectSized().
00057 { 00058 int i ; 00059 int j ; 00060 for ( i = 0 ; i < mat->nbRow; i++ ) 00061 { 00062 for ( j = 0 ; j < mat->nbCol ; j++ ) 00063 { 00064 int * curElement = getVect2iMatElement( mat, i, j ) ; 00065 iHomothety2D( curElement, center, factors, curElement ) ; 00066 } 00067 } 00068 }
Here is the call graph for this function:

Here is the caller graph for this function:

| void rotateVect2dMatrix | ( | Vect2dMatrix * | mat, | |
| double | center[2], | |||
| double | angle | |||
| ) |
Definition at line 83 of file Vect2Matrix.c.
References getVect2dMatElement(), i, j, mat, and rotate2Dim().
00084 { 00085 double cosAngle = cos( angle ) ; 00086 double sinAngle = sin( angle ) ; 00087 int i ; 00088 int j ; 00089 for ( i = 0 ; i < mat->nbRow ; i++ ) 00090 { 00091 for ( j = 0 ; j < mat->nbCol ; j++ ) 00092 { 00093 double * curElement = getVect2dMatElement( mat, i, j ) ; 00094 rotate2Dim( curElement, center, cosAngle, sinAngle, curElement ) ; 00095 } 00096 } 00097 }
Here is the call graph for this function:

| void rotateVect2iMatrix | ( | Vect2iMatrix * | mat, | |
| int | center[2], | |||
| double | angle | |||
| ) |
Definition at line 26 of file Vect2Matrix.c.
References getVect2iMatElement(), i, iRotate2Dim(), j, and mat.
Referenced by getStringsPositions().
00027 { 00028 double cosAngle = cos( angle ) ; 00029 double sinAngle = sin( angle ) ; 00030 int i ; 00031 int j ; 00032 for ( i = 0 ; i < mat->nbRow; i++ ) 00033 { 00034 for ( j = 0 ; j < mat->nbCol ; j++ ) 00035 { 00036 int * curElement = getVect2iMatElement( mat, i, j ) ; 00037 iRotate2Dim( curElement, center, cosAngle, sinAngle, curElement ) ; 00038 } 00039 } 00040 }
Here is the call graph for this function:

Here is the caller graph for this function:

| void translateVect2dMatrix | ( | Vect2dMatrix * | mat, | |
| double | trans[2] | |||
| ) |
translate a matrix of vector trans.
Definition at line 99 of file Vect2Matrix.c.
References getVect2dMatElement(), i, j, mat, and translate2D().
00100 { 00101 int i ; 00102 int j ; 00103 for ( i = 0 ; i < mat->nbRow ; i++ ) 00104 { 00105 for ( j = 0 ; j < mat->nbCol ; j++ ) 00106 { 00107 double * curElement = getVect2dMatElement( mat, i, j ) ; 00108 translate2D( curElement, trans, curElement ) ; 00109 } 00110 } 00111 }
Here is the call graph for this function:

| void translateVect2iMatrix | ( | Vect2iMatrix * | mat, | |
| int | trans[2] | |||
| ) |
translate a matrix of vector trans.
Definition at line 42 of file Vect2Matrix.c.
References getVect2iMatElement(), i, iTranslate2D(), j, and mat.
Referenced by getStringsPositions().
00043 { 00044 int i ; 00045 int j ; 00046 for ( i = 0 ; i < mat->nbRow ; i++ ) 00047 { 00048 for ( j = 0 ; j < mat->nbCol ; j++ ) 00049 { 00050 int * curElement = getVect2iMatElement( mat, i, j ) ; 00051 iTranslate2D( curElement, trans, curElement ) ; 00052 } 00053 } 00054 }
Here is the call graph for this function:

Here is the caller graph for this function:

1.5.1