Skip to content

MinumumAreaRectangle with convex hint is limited because all methods are private #1149

@joshgold22

Description

@joshgold22

The constuctor, but not the static factory for MinimumAreaRectangle allows a hint that the input Geometry is already convex. If I use any constructor, though (with or without the hint) I don't see anything at all that I can do with the object that's created because none of the methods are public. I can't get a Geometry from it, for instance like the static factory provides. And the static factory does not support the convex hint. Fixes could include makoing the non-static getMinimumRectangle method public, as well as adding a version of the static factory method with the convex parameter.)

(My ideal use-case goes further: I'd like to be able to get the length and width, or even better, the short and long diameter without checking the other. This is related to MaximumInscribedCircle.isRadiusWithin, which isn't in a public release yet I believe. The first order fix for this class, though, seems to be tweaking what should be public or not.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions