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

#412 MultiPolygon::rotate should use centroid as pivot #562

Conversation

martinfrances107
Copy link
Contributor

Here is the solution with tests.

@martinfrances107
Copy link
Contributor Author

Here is the associated issue

#412

@martinfrances107
Copy link
Contributor Author

To criticize my own work...

I have copied the project wide practise of copying over numerical rounding error into the expected test output

for example the value -0.9999999999999999 when -1 was desired

In a separate issue I want to fix this .. hence I have created a new issue

#565

T: Float,
Self: Sized,
{
self.rotate_around_point(angle, self.centroid())
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had some input which I thought would be better to discuss in the issue rather than the PR, please see here: #412 (comment)

Curious about your opinion here.

@michaelkirk
Copy link
Member

As discussed in #412 we took a slightly different approach - merged in #651

@martinfrances107 martinfrances107 deleted the rotate_using_centroid_as_a_pivot branch July 22, 2021 19:54
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