public Grain(int x, int y, int state) { this.energyCoords = new GrainEnergyCoords(x, y); this.state = state; this.x = x; this.y = y; this.density = 0; this.recrystallized = false; this.onBorder = false; }
public GrainEnergyCoords(GrainEnergyCoords energyCoords) { x = energyCoords.X; y = energyCoords.Y; }