src/camera/camera2d.js
function (obj, floating) {
            if (floating === true || obj.floating === true) {
                // check against screen coordinates
                return me.video.renderer.overlaps(obj.getBounds());
            } else {
                // check if within the current camera
                return obj.getBounds().overlaps(this);
            }
        }
function (obj, floating) {
            if (floating === true || obj.floating === true) {
                // check against screen coordinates
                return me.video.renderer.overlaps(obj.getBounds());
            } else {
                // check if within the current camera
                return obj.getBounds().overlaps(this);
            }
        }
function ( obj , floating ) { if ( floating === true || obj . floating === true ) { // check against screen coordinates return me . video . renderer . overlaps ( obj . getBounds ( ) ) ; } else { // check if within the current camera return obj . getBounds ( ) . overlaps ( this ) ; } }
check if the specified renderable is in the camera
@name isVisible
@memberOf me.Camera2d
@function
@param {me.Renderable} object
@param {Boolean} [floating===object.floating] if visibility check should be done against screen coordinates
@return {Boolean}
check if the specified renderable is in the camera