using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace bbiwarg { class DepthImage { private int width, height; private ushort[] data; public DepthImage(int width, int height, ushort[] data) { this.width = width; this.height = height; this.data = data; } public int getWidth() { return width; } public int getHeight() { return height; } public ushort getDepth(int x, int y) { return data[y * width + x]; } } }