src/coord/single/Single.js
function (point) {
        var rect = this.getRect();
        var axis = this.getAxis();
        var orient = axis.orient;
        if (orient === 'horizontal') {
            return axis.contain(axis.toLocalCoord(point[0]))
            && (point[1] >= rect.y && point[1] <= (rect.y + rect.height));
        }
        else {
            return axis.contain(axis.toLocalCoord(point[1]))
            && (point[0] >= rect.y && point[0] <= (rect.y + rect.height));
        }
    }
function (point) {
        var rect = this.getRect();
        var axis = this.getAxis();
        var orient = axis.orient;
        if (orient === 'horizontal') {
            return axis.contain(axis.toLocalCoord(point[0]))
            && (point[1] >= rect.y && point[1] <= (rect.y + rect.height));
        }
        else {
            return axis.contain(axis.toLocalCoord(point[1]))
            && (point[0] >= rect.y && point[0] <= (rect.y + rect.height));
        }
    }
function ( point ) { var rect = this . getRect ( ) ; var axis = this . getAxis ( ) ; var orient = axis . orient ; if ( orient === 'horizontal' ) { return axis . contain ( axis . toLocalCoord ( point [ 0 ] ) ) && ( point [ 1 ] >= rect . y && point [ 1 ] <= ( rect . y + rect . height ) ) ; } else { return axis . contain ( axis . toLocalCoord ( point [ 1 ] ) ) && ( point [ 0 ] >= rect . y && point [ 0 ] <= ( rect . y + rect . height ) ) ; } }
If contain point.

@param  {Array.<number>} point
@return {boolean}
If contain point .