All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.djutils.draw.Drawable2d Maven / Gradle / Ivy

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; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy