function whereInBary(bary) {

            var min = -_config.uvSmoothing;
            var max = 1 + _config.uvSmoothing;

            var inTri = bary.every(function (e) {
                return e >= 0 && e <= 1;
            });
            var inExtendedTri = bary.every(function (e) {
                return e >= min && e <= max;
            });

            return inTri && inExtendedTri ? 1 : (inExtendedTri === true ? 0 : -1);

        }
/**
         * To determine whether a given point is inside a triangle(1) or in the offset area of the triangle(0)
         * or outside of the extended triangle(-1)
         * @param bary
         * @returns -1 = not in triangle with offset, 0 = in Triangle offset, 1 = in Triangle
         */
To determine whether a given point is inside a triangle(1) or in the offset area of the triangle(0)
or outside of the extended triangle(-1)
@param bary
@returns -1 = not in triangle with offset, 0 = in Triangle offset, 1 = in Triangle
To determine whether a given point is inside a triangle ( 1 ) or in the offset area of the triangle ( 0 ) or outside of the extended triangle ( - 1 ) @param bary @returns - 1 = not in triangle with offset 0 = in Triangle offset 1 = in Triangle
function whereInBary(bary) {
            var min = -_config.uvSmoothing;
            var max = 1 + _config.uvSmoothing;
            var inTri = bary.every(function (e) {
                return e >= 0 && e <= 1;
            });
            var inExtendedTri = bary.every(function (e) {
                return e >= min && e <= max;
            });
            return inTri && inExtendedTri ? 1 : (inExtendedTri === true ? 0 : -1);
        }
function whereInBary ( bary ) { var min = - _config . uvSmoothing ; var max = 1 + _config . uvSmoothing ; var inTri = bary . every ( function ( e ) { return e >= 0 && e <= 1 ; } ) ; var inExtendedTri = bary . every ( function ( e ) { return e >= min && e <= max ; } ) ; return inTri && inExtendedTri ? 1 : ( inExtendedTri === true ? 0 : - 1 ) ; }
To determine whether a given point is inside a triangle(1) or in the offset area of the triangle(0)
 or outside of the extended triangle(-1)
 @param bary
 @returns -1 = not in triangle with offset, 0 = in Triangle offset, 1 = in Triangle
To determine whether a given point is inside a triangle ( 1 ) or in the offset area of the triangle ( 0 ) or outside of the extended triangle ( - 1 ) @param bary @returns - 1 = not in triangle with offset 0 = in Triangle offset 1 = in Triangle