-
Notifications
You must be signed in to change notification settings - Fork 20
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
Shape Naming and Non-Centered Rectangles #10
Comments
I would like that :) About the naming: Maybe we should call it Orthotope. Rectangle implies 2D and Cube implies 3D but such a shape can have up to n dimensions. |
@Squareys I agree. I think it would be best to have only a single I would propose that the The "centered" constructors (or sublass) would take a @Squareys If you need it and want to do it, please go ahead. Otherwise I'll put it on my list... @tibuch I don't like Orthotope so much because nobody will look for the Shape under this name. Except @axtimwalde possibly :) ... Wikipedia suggests https://en.wikipedia.org/wiki/Hyperrectangle that Hyperrectangle and Box are also possible names. I think both would be better. I like Box, actually, although it also kind of implies 3D. |
Hi everybody!
I noticed the following naming inconsistency:
In general, there are no non-centered RectangleShapes and RectangleShape could be easily implemented over a fitting span parameter for CenteredRectangleShape.
This will probably be hard to do because of API breaks, but I would suggest the following:
Rename
CenteredRectangleShape
to(Hyper)RectangleShape
and make it uncentered, then do the centering and theCube
shapes over constructor parameters or subclasses(Hyper)CubeShape
andCentered*Shape
.As far as I can tell, the current implementation of RectangleNeighborhood (aka. CenteredRectangleNeighborhood) is flexible enough to be easily adapted to an uncentered implementation.
Benefits: Straight-forward naming and code reuse for all Rectangle-based shapes.
Please tell me what you think and if I missed something.
Greetings, Squareys.
The text was updated successfully, but these errors were encountered: