Posts

Showing posts with the label 2d

2D Transformation

2D Transformation //C Program for 2D transformation  : Translation ,Scaling , Rotation about origin and arbitrary point #include<graphics.h> #include<iostream> #include<math.h> #include<stdio.h> using namespace std; int gd=DETECT,gm,ch,exitp=0; float theta,sx,sy; int a,b[20],i,c[20],d[20],e[20],tx,ty,ax,ay; void translate(); void scale(); void rotate(); void quad(); void arotate(); int main() { cout<<"enter no points of poly"; cin>>a; cout<<" enter no of cordinates of polygon"; for (i=0;i<a*2;i++) { cin>>b[i]; if (i%2==0) c[i]=b[i]+320; else c[i]=240-b[i]; } c[i]=c[0]; c[i+1]=c[1]; cout<<" please enter choice 1:Translation 2:scaling 3:Rotation about origin 4:Rotation about arbitary point"; cin>>ch; switch(ch) { case 1: cout<<"enter x and y translation"; cin>>tx>>ty; quad(); translate(); break; case 2: cout<<"enter x and y Scaling"; cin>>sx>...

2D MAHJONG TEMPLE español oficial

Image
2D MAHJONG TEMPLE español oficial Sinopsis: Experimenta la diversi�n Mahjong del lejano oriente y ayuda a la hija del jefe del templo a recuperar a su conejo favorito en esta colorida aventura . La joven muchacha apenas le hab�a quitado la mirada de encima, cuando el travieso animal sali� corriendo. �Debes encontrar a este pillo animalito antes de que algo malo le suceda! �Prep�rate para ser cautivado por 2D Mahjong Temple, con 60 niveles maravillosamente dise�ados en tres excitantes cap�tulos! �Acepta este extraordinario desaf�o Mahjongg * Gr�ficos bellamente dise�ados con estilo del Lejano Oriente * 60 Desafiantes niveles * 3 Cap�tulos entretenidos * Relajante m�sica de fondo Gracias por el juego Merhka Fuente: Los juegos del Caldero! Gracias por compartir! Requisitos del sistema Windows Vista, Windows XP, Windows 7, Windows 8 1GHz DirectX 9.0 512MB RAM Descargar: Espa�ol... Links intercambiables!!! DepositFiles: http://dfiles.eu/files/8806ymy01 Oboom: https://www.oboom.com/X8BM9...

2D Numpy Arrays

Image
2D Numpy Arrays Lets recreate the numpy arrays. If you ask for the type of these arrays,Python tells you that they are numpy.ndarray. `numpy`. tells you its a type that was defined in the numpy package. `ndarray` stands for n-dimensional array. The arrays `np_height` and `np_weight` are one-dimensional arrays, but its perfectly possible to create 2 dimensional, three dimensional, heck even seven dimensional arrays! You can create a 2D numpy array from a regular Python list of lists. Lets try to create one numpy array for all height and weight data of your family, like this: If you print out `np_2d` now, youll see that it is a rectangular data structure: Each sublist in the list, corresponds to a row in the two dimensional numpy array. From `np_2d.shape`, you can see that we indeed have 2 rows and 5 columns. `shape` is a so-called attribute of the `np2d` array, that can give you more information about what the data structure looks like. In [ 1 ] : import numpy as np In [ 2 ] : np_...