Package org.opentrafficsim.draw.road
Class LaneAnimation.CenterLine
java.lang.Object
org.opentrafficsim.draw.road.LaneAnimation.CenterLine
- All Implemented Interfaces:
Locatable
- Enclosing class:
- LaneAnimation
Draw center line of a lane.
-
Constructor Summary
ConstructorsConstructorDescriptionCenterLine
(org.opentrafficsim.core.geometry.OtsLine3d centerLine) Construct a new CenterLine. -
Method Summary
Modifier and TypeMethodDescriptionfinal org.opentrafficsim.core.geometry.Bounds
org.opentrafficsim.core.geometry.OtsLine3d
Retrieve the center line.final org.opentrafficsim.core.geometry.DirectedPoint
-
Constructor Details
-
CenterLine
CenterLine(org.opentrafficsim.core.geometry.OtsLine3d centerLine) Construct a new CenterLine.- Parameters:
centerLine
- OtsLine3d; the center line of a lane
-
-
Method Details
-
getLocation
public final org.opentrafficsim.core.geometry.DirectedPoint getLocation()- Specified by:
getLocation
in interfaceLocatable
-
getBounds
- Specified by:
getBounds
in interfaceLocatable
- Throws:
RemoteException
-
getCenterLine
public org.opentrafficsim.core.geometry.OtsLine3d getCenterLine()Retrieve the center line.- Returns:
- OtsLine3d; the center line
-