Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make USINGZ as local as possible in Clipper.Core.cs (minor refactoring) #924

Merged
merged 1 commit into from
Dec 21, 2024

Conversation

firegurafiku
Copy link
Contributor

While looking through the code, I found it a bit challenging to reason about the Point64 and PointD classes. This was mainly because many methods appeared in two nearly identical versions due to the USINGZ feature, and they were spaced quite far apart in the code. To address this, I reordered the code slightly.

I hope you find these changes to be an improvement as well.

Keeping USINGZ-enable and USINGS-disabled code close together is going to
help in preventing accidental code divergences.
@AngusJohnson AngusJohnson merged commit 7598be9 into AngusJohnson:main Dec 21, 2024
6 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants