Compute the oriented slope of a segment according to a reference slope This method is used to compute an approximation of the angle between two segments in 2D. return a slope between [0, 8] i.e. an equivalent angle between [0, 2Pi]