Package org.opentrafficsim.core.geometry
Class Flattener.MaxDeviationAndAngle
java.lang.Object
org.opentrafficsim.core.geometry.Flattener.MaxDeviationAndAngle
- All Implemented Interfaces:
Flattener
- Enclosing interface:
- Flattener
Flattener based on maximum deviation and maximum angle.
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 classes/interfaces inherited from interface org.opentrafficsim.core.geometry.Flattener
Flattener.MaxAngle, Flattener.MaxDeviation, Flattener.MaxDeviationAndAngle, Flattener.NumSegments
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.djutils.draw.line.PolyLine2d
flatten
(FlattableLine line) Flatten continuous line in to a polyline.
-
Constructor Details
-
MaxDeviationAndAngle
public MaxDeviationAndAngle(double maxDeviation, double maxAngle) Constructor.- Parameters:
maxDeviation
- int; maximum deviation, must be above 0.0.maxAngle
- int; maximum angle, must be above 0.0.
-
-
Method Details