Package org.opentrafficsim.draw.road
Class LaneAnimation.CenterLine
java.lang.Object
org.opentrafficsim.draw.road.LaneAnimation.CenterLine
- All Implemented Interfaces:
nl.tudelft.simulation.dsol.animation.Locatable,OtsShape,LineLocatable
- Enclosing class:
- LaneAnimation
Draw center line of a lane.
-
Field Summary
Fields inherited from interface org.opentrafficsim.base.geometry.OtsShape
DEFAULT_POLYGON_SEGMENTS, WORLD_MARGIN_LINE -
Method Summary
Modifier and TypeMethodDescriptionReturns the center line.getLine()Returns line representation of this object in object coordinates.final DirectedPoint2ddoublegetZ()toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.opentrafficsim.draw.LineLocatable
contains, signedDistanceMethods inherited from interface org.opentrafficsim.base.geometry.OtsShape
contains, getAbsoluteBounds, getAbsoluteContour, getDirZ, getRelativeBounds, signedDistance
-
Method Details
-
getLocation
- Specified by:
getLocationin interfacenl.tudelft.simulation.dsol.animation.Locatable- Specified by:
getLocationin interfaceOtsShape
-
getRelativeContour
- Specified by:
getRelativeContourin interfaceOtsShape
-
getAbsoluteContour
- Specified by:
getAbsoluteContourin interfaceOtsShape
-
getCenterLine
Returns the center line.- Returns:
- the center line
-
getLine
Description copied from interface:LineLocatableReturns line representation of this object in object coordinates.- Specified by:
getLinein interfaceLineLocatable- Returns:
- line representation of this object in object coordinates
-
getZ
public double getZ()- Specified by:
getZin interfacenl.tudelft.simulation.dsol.animation.Locatable
-
toString
-