Lines Matching refs:cubeSize
322 fun randomCube(seed: Long, cubeSize: Dimension): ByteArray { in randomCube()
324 return ByteArray(cubeSize.sizeX * cubeSize.sizeY * cubeSize.sizeZ * 4) { in randomCube()
333 fun identityCube(cubeSize: Dimension): ByteArray { in identityCube()
334 val data = ByteArray(cubeSize.sizeX * cubeSize.sizeY * cubeSize.sizeZ * 4) in identityCube()
335 val cube = Rgba3dArray(data, cubeSize.sizeX, cubeSize.sizeY, cubeSize.sizeZ) in identityCube()
336 for (z in 0 until cubeSize.sizeZ) { in identityCube()
337 for (y in 0 until cubeSize.sizeY) { in identityCube()
338 for (x in 0 until cubeSize.sizeX) { in identityCube()
341 (x * 255 / (cubeSize.sizeX - 1)).toByte(), in identityCube()
342 (y * 255 / (cubeSize.sizeY - 1)).toByte(), in identityCube()
343 (z * 255 / (cubeSize.sizeZ - 1)).toByte(), in identityCube()