How to get average of these two floor angles?

How would I make this not stutter, since the hitbox is also affected in the rotation, which makes the sprite read the different angle instead, and vice versa, creating a fast stuttering effect. :confused:

image