Package org.opentrafficsim.base.geometry
package org.opentrafficsim.base.geometry
OTS specific geometry functionality.
Copyright (c) 2013-2026 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
-
ClassDescriptionShape defined by a circle.Adds a direction at the start and end point relative to its super class
OtsLine2d, as the first and last segment may not have the same direction as a theoretical line the segments are a numerical approach of.Fractional projection helper forOtsLine2d.Cache key for directions (normalized angles; nulls allowed).Fallback strategies for when fractional projection is not applicable.Value object: per-segment helper, either center or direction.Shape defined by an offset rectangle.Exception when geometry is incorrectly specified or an operation is requested that is not possible.Utility class for OTS geometry.This class supports fractional projection, radius, and has locatable methods.Locatable that provides absolute and relative contours and bounds, both statically and dynamically.Shape defined by a polygon.Computes signed curvature radii for anOtsLine2dusing the fractional projection helpers.Shape defined by a rectangle.Shape defined by a rounded rectangle.