38 if(R.IsInside(R1)) std::cout<<
"R is inside R1"<<std::endl;
39 else std::cout<<
"R is not inside R1"<<std::endl;
41 if(R.IsInside(R2)) std::cout<<
"R is inside R2"<<std::endl;
42 else std::cout<<
"R is not inside R2"<<std::endl;
45 if(R1.IsInside(A)) std::cout<<
"R1 is inside A"<<std::endl;
46 else std::cout<<
"R1 is not inside A"<<std::endl;
48 if(R2.IsInside(A)) std::cout<<
"R2 is inside A"<<std::endl;
49 else std::cout<<
"R2 is not inside A"<<std::endl;
51 if(R1.IsInside(B)) std::cout<<
"R1 is inside B"<<std::endl;
52 else std::cout<<
"R1 is not inside B"<<std::endl;
54 if(R2.IsInside(B)) std::cout<<
"R2 is inside B"<<std::endl;
55 else std::cout<<
"R2 is not inside B"<<std::endl;
59 std::cout<<
"R=R1.Intersection(R2);"<<std::endl;
60 R=R1.Intersection(R2);
65 std::cout<<
"R.LoadString(\"1 2 3 4\");"<<std::endl;
66 R.LoadString(
"1 2 3 4");
71 std::cout<<
"R.LoadString(\"4 3 2\\t1\");"<<std::endl;
72 R.LoadString(
"4 3 2\t1");
77 FILE *fd=fopen(
"data_region.txt",
"w");
83 fd=fopen(
"data_region.txt",
"r");
La clase tipo Array . Esta clase genera una agrupación de 2 datos. Para usar incluir Pds/Array.
La clase tipo Pds::Matrix . Esta clase genera una matriz de Nlin lineas y Ncol columnas....
La estructura tipo Pds::RegionRect . Esta estructura genera una region. Para usar incluir <Pds/Region...
int FilePrint(FILE *fd) const
Imprime en un FILE la variable Pds::RegionRect.
void Print(std::string str="") const
Muestra en pantalla el contenido de Pds::RegionRect, elementos separados por tabulador.