plugins/routers/joint.routers.manhattan.js
function normalizePoint(point) {

        return new g.Point(
            point.x === 0 ? 0 : Math.abs(point.x) / point.x,
            point.y === 0 ? 0 : Math.abs(point.y) / point.y
        );
    }
function normalizePoint(point) {

        return new g.Point(
            point.x === 0 ? 0 : Math.abs(point.x) / point.x,
            point.y === 0 ? 0 : Math.abs(point.y) / point.y
        );
    }
function normalizePoint ( point ) { return new g . Point ( point . x === 0 ? 0 : Math . abs ( point . x ) / point . x , point . y === 0 ? 0 : Math . abs ( point . y ) / point . y ) ; }
return a normalized vector from given point used to determine the direction of a difference of two points
return a normalized vector from given point used to determine the direction of a difference of two points