Adjust the in-angle in BisectingAngle() when the difference is -180
We would previously produce the same angle for 180 -> 0 transitions as for 0 -> 180 (or similarly 90 -> -90 and -90 -> 90 respectively), which isn't correct. Tweak the condition in BisectingAngle() to adjust the in-angle when it is smaller than the out-angle to differentiate the two cases. Fixed: 1132525 Change-Id: I191e9e3d4889517f1188ec4a19e71beb8a966ed4 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2446729Reviewed-by:Stephen Chenney <schenney@chromium.org> Commit-Queue: Fredrik Söderquist <fs@opera.com> Cr-Commit-Position: refs/heads/master@{#815604}
Showing
Please register or sign in to comment