function inrange(limitl, limitr, angle) {
        limitr += limitr > limitl || 360;
        return ((limitl < angle && limitr > angle) ||
                (limitl - 360 < angle && limitr - 360 > angle) ||
                (limitl + 360 < angle && limitr + 360 > angle));
    }
// Check whether an angle is in range between limitl and limitr
Check whether an angle is in range between limitl and limitr
Check whether an angle is in range between limitl and limitr
function inrange(limitl, limitr, angle) {
        limitr += limitr > limitl || 360;
        return ((limitl < angle && limitr > angle) ||
                (limitl - 360 < angle && limitr - 360 > angle) ||
                (limitl + 360 < angle && limitr + 360 > angle));
    }
function inrange ( limitl , limitr , angle ) { limitr += limitr > limitl || 360 ; return ( ( limitl < angle && limitr > angle ) || ( limitl - 360 < angle && limitr - 360 > angle ) || ( limitl + 360 < angle && limitr + 360 > angle ) ) ; }
Check whether an angle is in range between limitl and limitr
Check whether an angle is in range between limitl and limitr