Quantcast
Channel: Programming (In-game)
Viewing all articles
Browse latest Browse all 903

2D array with Objects help

$
0
0
Code:
struct SpacialInfo
{
	 public double x;
	 public double y;

	 public SpacialInfo(double x, double y)
	 {
		 this.x=x;
		 this.y=y;
	}

	 public double getHori(){
		 return y;}

	 public double getVeri(){
		 return x;}
}
 
 
void Main(string argument)
{
	 SpacialInfo test = new SpacialInfo(1.7,2.1);
	 int rows = 2;
	 int columns = 4;
	 double deltax = 2.7;
	 double deltay = 2.7;
	 double rowsCheck = 2.7*(rows-1);
	 double colCheck = 2.7*(columns-1);
	 SpacialInfo[,] array = new...
2D array with Objects help

Viewing all articles
Browse latest Browse all 903

Trending Articles