def depth(self, value): if isinstance(value, Distance): self._depth = value else: self._depth = Distance(value)
def elevation(self, value): if isinstance(value, Distance): self._elevation = value else: self._elevation = Distance(value)