Пример #1
0
    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;
    }
Пример #2
0
 public GrainEnergyCoords(GrainEnergyCoords energyCoords)
 {
     x = energyCoords.X;
     y = energyCoords.Y;
 }