org.djutils.draw.Drawable2d Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of djutils-draw Show documentation
Show all versions of djutils-draw Show documentation
DJUTILS - Delft Java Utilities Drawing and animation primitives
The newest version!
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-2024 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();
@Override
default int getDimensions()
{
return 2;
}
}