Skip to content

Instantly share code, notes, and snippets.

@abuiles
Created October 9, 2009 18:34
Show Gist options
  • Save abuiles/206234 to your computer and use it in GitHub Desktop.
Save abuiles/206234 to your computer and use it in GitHub Desktop.
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