Package org.opentrafficsim.core
Interface SpatialObject
- All Known Subinterfaces:
DynamicSpatialObject
public interface SpatialObject
SpatialObject indicates that an object has a shape that can be requested. A spatial object can therefore be stored in a
spatial tree such as an R-Tree.
Copyright (c) 2022-2024 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
- Author:
- Alexander Verbraeck, Peter Knoppers, Wouter Schakel
-
Method Summary
Modifier and TypeMethodDescriptionorg.djutils.draw.line.Polygon2d
getShape()
Return the shape of the object.
-
Method Details
-
getShape
org.djutils.draw.line.Polygon2d getShape()Return the shape of the object.- Returns:
- OtsShape; the shape of the object
-