Vect2Matrix.h

Go to the documentation of this file.
00001 /*-------------------------------------------------------------------------------------------*/
00002 /* COPYRIGHT INRIA 2006                                                                      */
00003 /* File    : Vect2Matrix.h                                                                   */
00004 /* Authors : Jean-Baptiste Silvy 2006-xxxx                                                   */
00005 /* Desc.   : Allocation and deletion and modifications of matrices of 2d vector.             */
00006 /*           The matrix stored arrays of size two of int or double                           */
00007 /*-------------------------------------------------------------------------------------------*/
00008 
00009 #ifndef _SCI_VECT2_MATRIX_H_
00010 #define _SCI_VECT2_MATRIX_H_
00011 
00012 #include "sciMatrix.h"
00013 
00014 /*-------------------------------------------------------------------------------------------*/
00015 /* matrix of int[2] */
00016 typedef sciMatrix Vect2iMatrix ;
00017 
00018 /* accessors */
00019 int * getVect2iMatElement( const Vect2iMatrix * mat, int row, int col ) ;
00020 
00021 /* desalocate the (row,col) current string and copy the new one. */
00022 void copyVect2iMatElement(       Vect2iMatrix * mat,
00023                                  int row           ,
00024                                  int col           , 
00025                            const int copyValue[2]   ) ;
00026 
00027 /* rotate all the element in the matrix of a given angle around the center */
00028 void rotateVect2iMatrix( Vect2iMatrix * mat, int center[2], double angle ) ;
00029 
00033 void translateVect2iMatrix( Vect2iMatrix * mat, int trans[2] ) ;
00034 
00035 /* apply an homothety on all element */
00036 void homothVect2iMatrix( Vect2iMatrix * mat, int center[2], double factors[2] ) ;
00037 
00038 /*-------------------------------------------------------------------------------------------*/
00039 /* matrix of double[2] */
00040 typedef sciMatrix Vect2dMatrix ;
00041 
00042 /* accessors */
00043 double * getVect2dMatElement( const Vect2dMatrix * mat, int row, int col ) ;
00044 
00045 /* desalocate the (row,col) current string and copy the new one. */
00046 void copyVect2dMatElement(       Vect2dMatrix * mat,
00047                                  int    row        ,
00048                                  int    col        , 
00049                            const double copyValue[2] ) ;
00050 
00054 void translateVect2dMatrix( Vect2dMatrix * mat, double trans[2] ) ;
00055 
00056 /* rotate all the element in the matrix of a given angle around the center */
00057 void rotateVect2dMatrix( Vect2dMatrix * mat, double center[2], double angle ) ;
00058 
00059 /* apply an homothety on all element */
00060 void homothVect2dMatrix( Vect2dMatrix * mat, double center[2], double factors[2] ) ;
00061 
00062 
00063 /*-------------------------------------------------------------------------------------------*/
00064 
00065 #endif /* _SCI_VECT2_MATRIX_H_ */

Generated on Sun Mar 4 15:03:50 2007 for Scilab [trunk] by  doxygen 1.5.1