Address possible confusion about getBounds() in djutils-draw #22
Labels
djutils-draw
djutils-draw project
documentation
Improvements or additions to documentation
simplification
simplification of code
It is not clear whether the
getBounds()
methods of drawable objects return absolute coordinates, or relative coordinates respective so some point (e.g., the centroid). The latter is used by dsol; the former is what you would intuitively expect. The comments state: "Retrieve the bounding rectangle of the object", which does not make it any more clear.Research different options:
getBounds()
intogetRelativeBounds()
andgetAbsoluteBounds()
No matter what we choose, the method's javadoc HAS to be made more clear.
The text was updated successfully, but these errors were encountered: