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); } }
public Coord(Stream stream) { data = new T[3]; for (int i = 0, c = data.Length; i < c; ++i) { data[i] = StreamUtils.Read <T>(stream); } }