Interface SpatialObject

All Known Subinterfaces:
DynamicSpatialObject, OtsLocatable

public interface SpatialObject
SpatialObject indicates that an object has a contour 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
    Returns the contour of the object in world coordinates.
  • Method Details

    • getContour

      org.djutils.draw.line.Polygon2d getContour()
      Returns the contour of the object in world coordinates.
      Returns:
      the contour of the object in world coordinates