Beispiel #1
0
        public Vec(Stream stream)
        {
            data = new T[StreamUtils.ReadInt32(stream)];

            for (int i = 0, c = data.Length; i < c; ++i)
            {
                data[i] = StreamUtils.Read <T>(stream);
            }
        }
Beispiel #2
0
        public Coord(Stream stream)
        {
            data = new T[3];

            for (int i = 0, c = data.Length; i < c; ++i)
            {
                data[i] = StreamUtils.Read <T>(stream);
            }
        }