Interface SpatialObject

All Known Subinterfaces:
DynamicSpatialObject
All Known Implementing Classes:
CapacityLink, Centroid, Connector, Gtu, Link, Node

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 Type
    Method
    Description
    org.djutils.draw.line.Polygon2d
    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