示例#1
0
 public Star4Grid(float[,] initVals, float[,] fixedVals, int seed)
 {
     Seed       = seed;
     Noise      = GenS.NormalSF32(GenV.Twist(seed), 0.0f, 1.0f);
     Stars      = Star4Procs.MakeStarGrid(initVals, fixedVals);
     Rows       = Stars.GetLength(1);
     Columns    = Stars.GetLength(0);
     Generation = 0;
 }
示例#2
0
 public StarGrid(float[,] initVals, int noiseSeed)
 {
     NoiseSeed  = noiseSeed;
     Noise      = GenS.NormalSF32(GenV.Twist(NoiseSeed), 0.0f, 1.0f);
     Stars      = StarProcs.MakeStarGrid(initVals);
     Rows       = Stars.GetLength(1);
     Columns    = Stars.GetLength(0);
     Generation = 0;
 }