Interface LinkAnimation.LinkData
- All Superinterfaces:
Identifiable,LineLocatable,Locatable,OtsShape
- Enclosing class:
- LinkAnimation
Provides the information required to draw a link.
-
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 in world coordinates.default doublegetZ()booleanReturns whether this is a connector.Methods inherited from interface org.djutils.base.Identifiable
getIdMethods inherited from interface org.opentrafficsim.animation.LineLocatable
contains, getLine, signedDistanceMethods inherited from interface org.opentrafficsim.base.geometry.OtsShape
contains, getAbsoluteBounds, getAbsoluteContour, getAbsoluteContour, getDirZ, getRelativeBounds, getRelativeContour, signedDistance
-
Method Details
-
getLocation
DirectedPoint2d getLocation()- Specified by:
getLocationin interfaceLocatable- Specified by:
getLocationin interfaceOtsShape
-
isConnector
boolean isConnector()Returns whether this is a connector.- Returns:
- whether this is a connector
-
getCenterLine
PolyLine2d getCenterLine()Returns the center line in world coordinates.- Returns:
- the center line in world coordinates
-
getZ
default double getZ()
-