Repository navigation
Fix Comments for PreciseArcTo() - #22402
Conversation
NuGet packagesThe packages for this pull request have been published (workflow run):
|
MrJul
left a comment
There was a problem hiding this comment.
While I usually don't mind some unneeded spaces being automatically removed, in this PR, the code reformatting makes up the majority of the changes. Please revert that.
(We'll have some proper solution-wide reformatting and style enforcement at some point.)
|
@MrJul The code reformatting here actually fixes wrong indentation which affects readability quite a bit when going through that particular code. I couldn't at-a-glance tell the nesting when I was adjusting access modifiers. I restrained myself quite a bit as far as formatting corrections go. Whether the format change is larger than the code change is largely irrelevant as long as they are both targeted. It is not difficult to review. The core teams aversion to formatting fixes is disappointing when there are clear, universally agreed C# formatting rules that the project simply doesn't follow. For everyone's benefit these need to get fixed and PR after PR is called out for fixing them. I think this needs to be re-assessed... As far as automatic formatting I've heard about that for over 5 years now. It was supposed to happen for 12.0. It's desperately needed and things like XAMLStyler setup is very easy at this point. It doesn't take more than an hour. |
This reverts commit a4b05d1.
* Fix comments for PreciseArcTo() rotation angle units * Make PreciseEllipticArcHelper access modifiers explicit and restrict EllipticalArc * Fix indentation * Revert "Fix indentation" This reverts commit a4b05d1.
What does the pull request do?
Fixes the comments in
PreciseArcTo()which incorrectly define the input rotationAngle units as radians isntead of degrees.This matches the discussions here:
GeometryBuilder.DrawRoundedCornersRectangleforRect#21482 (comment)What is the current behavior?
Comments list radians instead of degrees.
What is the updated/expected behavior with this PR?
Comments are updated to mention degrees (which is being used already in the math). Comments were updated by inheriting existing text where possible.
How was the solution implemented (if it's not obvious)?
Checklist
Breaking changes
None. Access modifiers were made explicitly internal in the static
PreciseEllipticArcHelperhelper but this isn't a change. Within that helper,EllipticalArcwas restricted toprivatebut that isn't an issue since it was within the internal helper.Obsoletions / Deprecations
None
Fixed issues
Related to #21445