Created
October 9, 2009 18:34
-
-
Save abuiles/206234 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Image { | |
int width; | |
int height; | |
Point3i [][] image = null; | |
public Image(int width, int height) { | |
this.width = width; | |
this.height = height; | |
image = new Point3i[width][height]; | |
for (int i = 0; i < width; i++) { | |
for (int j = 0; j < height; j++) { | |
image[i][j] = new Point3i(0, 0, 0); | |
} | |
} | |
} | |
//Estaba Tratando algo como | |
class Image (width:int, height:int) | |
{ | |
var image = Array [Array (Point3i)] (width,height) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment