public boolean containsPoint(INDArray point) {
        double first = point.getDouble(0), second = point.getDouble(1);
        return x - hw <= first && x + hw >= first && y - hh <= second && y + hh >= second;
    }
public boolean containsPoint ( INDArray point ) { double first = point . getDouble ( 0 ) , second = point . getDouble ( 1 ) ; return x - hw <= first && x + hw >= first && y - hh <= second && y + hh >= second ; }
Whether the given point is contained
within this cell
@param point the point to check
@return true if the point is contained, false otherwise