Interface NodeAnimation.NodeData
- All Superinterfaces:
Identifiable,Locatable,OtsShape
- Enclosing class:
- NodeAnimation
NodeData provides the information required to draw a node.
-
Field Summary
Fields inherited from interface org.opentrafficsim.base.geometry.OtsShape
DEFAULT_POLYGON_SEGMENTS, WORLD_MARGIN_LINE -
Method Summary
Modifier and TypeMethodDescriptiondefault booleandefault doublegetZ()booleanReturns whether this node is a centroid.default doublesignedDistance(Point2d point) Methods inherited from interface org.djutils.base.Identifiable
getIdMethods 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
-
isCentroid
boolean isCentroid()Returns whether this node is a centroid.- Returns:
- whether this node is a centroid
-
signedDistance
- Specified by:
signedDistancein interfaceOtsShape
-
contains
-
getZ
default double getZ()
-