package org.djutils.draw; import org.djutils.draw.bounds.Bounds2d; import org.djutils.draw.point.Point2d; /** * Drawable2d is the interface that all drawable objects that use 2d coordinates must implement. *

* Copyright (c) 2020-2021 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
* BSD-style license. See DJUTILS License. *

* @author Alexander Verbraeck * @author Peter Knoppers */ public interface Drawable2d extends Drawable { /** * Retrieve the bounding rectangle of the object. * @return Bounds2d; the bounding box of the object */ Bounds2d getBounds(); /** {@inheritDoc} */ @Override default int getDimensions() { return 2; } }