00001 #include "stdio.h" 00002 #include "stdlib.h" 00003 #include "math.h" 00004 00005 #define PI 3.141592 00006 00011 typedef struct { 00013 double x; 00015 double y; 00016 }Pt2D; 00017 00018 typedef double** matriz; 00019 00020 matriz IniMatrix (int n); 00021 void FreeMatrix (matriz matrix,int n); 00022 void mulmat (matriz a, matriz b, matriz c); 00023 matriz Inversa3X3 (matriz matrix); 00024 void IniGiro (matriz matrix, double Angulo); 00025 void IniGiroRespectoPunto (matriz matrix, double Angulo, double x,double y); 00026 void IniTraslacion (matriz matrix, double x, double y); 00027 void IniSimetriaX (matriz matrix); 00028 void IniSimetriaY (matriz matrix); 00029 void IniEscalado (double EscaladoX,double EscaladoY,matriz matrix); 00030 void IniEscaladoRespectoPunto (double EscaladoX,double EscaladoY, 00031 double X,double Y,matriz matrix); 00032 Pt2D MultVect (matriz matrix, Pt2D punto);