According to the documentation, MikeShe uses "the normal [vector] to the thalweg of the river" to calculated the correction angle for a cross-section. How exactly is that done?

Our cross-sections typically sit between 2 river segments (see attached image). If the cross-section was developed from a DEM (instead of a survey), we assume its direction to be perpendicular to the "average" direction of the upstream and downstream segment (green cross-section perpendicular to dotted line). How would MikeShe calculate the correction angle for that? Base on the normal vector of one of those segments (which one?)?

Thanks, Chris