Package org.opentrafficsim.core.geometry
Interface Flattener
- All Known Implementing Classes:
Flattener.MaxAngle,Flattener.MaxDeviation,Flattener.MaxDeviationAndAngle,Flattener.NumSegments
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Flattens a continuous line in to a polyline.
Copyright (c) 2023-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
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classFlattener based on maximum angle.static classFlattener based on maximum deviation.static classFlattener based on maximum deviation and maximum angle.static classFlattener based on number of segments. -
Method Summary
Modifier and TypeMethodDescriptionorg.djutils.draw.line.PolyLine2dflatten(FlattableLine line) Flatten continuous line in to a polyline.
-
Method Details
-
flatten
Flatten continuous line in to a polyline.- Parameters:
line- line function.- Returns:
- flattened line.
-