averbraeck / djutils

Delft Java Utilities for statistics, stochastics, data analysis and serialization
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Address possible confusion about getBounds() in djutils-draw #22

Open averbraeck opened 1 year ago

averbraeck commented 1 year ago

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:

No matter what we choose, the method's javadoc HAS to be made more clear.