<div dir="ltr">Is there a function for calculating accumulative bearing given a zig-zagging line?<div><br></div><div>If we set a segment to travel towards north and its bearing is 0. Next segment may zig-zag towards 10 degrees.  The following one may zig-zag towards -5 degree.</div><div><br></div><div>Calculating accumulative bearing may assist us to check whether a line does a U-turn.  If accumulative bearing is greater than 180, it is a U-turn.</div><div><br></div><div>Is there such function available?</div><div><br></div><div>Regards,</div><div><br></div><div>David</div></div>