setDepth method

void setDepth(
  1. int position,
  2. int depthVal
)

Implementation

void setDepth(int position, int depthVal) {
  if (_depth[position] != (-999)) {
    if (_depth[position] != depthVal) {
      throw TopologyException("assigned depths do not match ${getCoordinate()}");
    }
  }
  _depth[position] = depthVal;
}