예제 #1
0
        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));
        }
예제 #2
0
 public static StarGrid RandStarGrid(Sz2 <int> bounds, int initSeed, int updateSeed)
 {
     return(new StarGrid(GenA2.RandUF32(bounds, initSeed), updateSeed));
 }
예제 #3
0
 public static Star5Grid RandStarGrid(Sz2 <int> bounds, float[,] fixedVals, int seed)
 {
     return(new Star5Grid(GenA2.RandUF32(bounds, seed), fixedVals, seed));
 }
예제 #4
0
 public static Star2Grid RandStarGrid(Sz2 <int> bounds, int seed)
 {
     return(new Star2Grid(GenA2.RandUF32(bounds, seed), seed));
 }