Skip to content

Expose MinimumAreaRectangle convex-hint API (#1149)#1217

Open
grootstebozewolf wants to merge 1 commit into
locationtech:masterfrom
grootstebozewolf:fix/1149-min-area-rectangle-convex-api
Open

Expose MinimumAreaRectangle convex-hint API (#1149)#1217
grootstebozewolf wants to merge 1 commit into
locationtech:masterfrom
grootstebozewolf:fix/1149-min-area-rectangle-convex-api

Conversation

@grootstebozewolf

Copy link
Copy Markdown
Contributor

Summary

Test plan

  • mvn -pl modules/core test -Dtest=MinimumAreaRectanglelTest — 12 tests, 0 failures
  • New testConvexHintStaticAndInstance checks static+instance convex paths match the default path on a convex polygon

Fixes #1149

The convex-hint constructor was unusable because getMinimumRectangle was
private and the static factory ignored isConvex. Make the instance method
public and add getMinimumRectangle(Geometry, boolean), matching
MinimumDiameter.
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.

MinumumAreaRectangle with convex hint is limited because all methods are private

1 participant