Package org.opentrafficsim.core.geometry
Interface FlattableLine
public interface FlattableLine
Line representation that a 
Flattener can flatten 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
- 
Method SummaryModifier and TypeMethodDescriptionorg.djutils.draw.point.Point2dget(double fraction) Returns the point at the given fraction.default doublegetDirection(double fraction) Returns the direction at the given fraction.
- 
Method Details- 
getorg.djutils.draw.point.Point2d get(double fraction) Returns the point at the given fraction. The fraction may represent any parameter, such as t in a Bezier, s in a Clothoid, or simply the fraction of length.- Parameters:
- fraction- fraction.
- Returns:
- point at the given fraction.
 
- 
getDirectiondefault double getDirection(double fraction) Returns the direction at the given fraction. The fraction may represent any parameter, such as t in a Bezier, s in a Clothoid, or simply the fraction of length. The default implementation performs a numerical approach by looking at the direction between the points at fraction, and a point 1e-6 away.- Parameters:
- fraction- fraction.
- Returns:
- direction at the given fraction.
 
 
-