getDepth method

num getDepth(
  1. int x,
  2. int y
)

Get the value of the depth channel at the given pixel coordinates x, y.

Implementation

num getDepth(int x, int y) => depth != null
    ? depth!.isFloat
        ? depth!.getFloat(x, y)
        : depth!.getInt(x, y)
    : 0;