examples/grid/test-grid2D.cpp
author Christos Mantoulidis <cmad@stanford.edu>
Thu, 02 Jul 2009 15:42:44 -0700
branchdev
changeset 150 eb629d8f00bf
parent 5 ee9052408c40
permissions -rw-r--r--
Added weighted rips code and libraries

#include "grid2D.h"
#include <iostream>

int main()
{
	Grid2D grid(40,60);
	int i = 0;
	for (int x = 0; x < 40; ++x)
		for (int y = 0; y < 60; ++y)
		{
			grid(x,y) = i++;
		}

	std::cout << grid(20,30) << std::endl;
	std::cout << grid << std::endl;
}