plugins/routers/joint.routers.manhattan.js
function getDirectionChange(angle1, angle2) {

        var directionChange = Math.abs(angle1 - angle2);
        return (directionChange > 180) ? (360 - directionChange) : directionChange;
    }
function getDirectionChange(angle1, angle2) {

        var directionChange = Math.abs(angle1 - angle2);
        return (directionChange > 180) ? (360 - directionChange) : directionChange;
    }
function getDirectionChange ( angle1 , angle2 ) { var directionChange = Math . abs ( angle1 - angle2 ) ; return ( directionChange > 180 ) ? ( 360 - directionChange ) : directionChange ; }
return the change in direction between two direction angles
return the change in direction between two direction angles