public void TestFloatA2ToBase64() { var bounds = new Sz2 <int>(3, 5); var aIn = GenA2.RandUF32(bounds, 123); var base64 = BTconv.F32A2toBase64(aIn); var aOut = BTconv.Base64ToF32A2(bounds, base64); Assert.IsTrue(aIn.IsSameAs(aOut)); }
public static StarGrid RandStarGrid(Sz2 <int> bounds, int initSeed, int updateSeed) { return(new StarGrid(GenA2.RandUF32(bounds, initSeed), updateSeed)); }
public static Star5Grid RandStarGrid(Sz2 <int> bounds, float[,] fixedVals, int seed) { return(new Star5Grid(GenA2.RandUF32(bounds, seed), fixedVals, seed)); }
public static Star2Grid RandStarGrid(Sz2 <int> bounds, int seed) { return(new Star2Grid(GenA2.RandUF32(bounds, seed), seed)); }