Uses of Class
org.djutils.draw.line.PolyLine2d
Packages that use PolyLine2d
Package
Description
The draw package contains the generic classes for device-independent drawing.
Continuous lines are (mathematically) defined curves that:
have no gaps
have a start point
have an end point
have a defined direction at the start point
have a defined direction at the end point
may have knots along the way.
have no gaps
have a start point
have an end point
have a defined direction at the start point
have a defined direction at the end point
may have knots along the way.
The line package provides an interface and different implementations for lines.
-
Uses of PolyLine2d in org.djutils.draw
Methods in org.djutils.draw with parameters of type PolyLine2dModifier and TypeMethodDescriptionstatic String
Export.toPlot
(PolyLine2d polyLine) Convert a PolyLine2d to Peter's plot format.static String
Export.toTsv
(PolyLine2d polyLine) Convert a PolyLine2d into something that a TSV parser can handle. -
Uses of PolyLine2d in org.djutils.draw.curve
Methods in org.djutils.draw.curve that return PolyLine2dModifier and TypeMethodDescriptionFlatten a Curve2d into a PolyLine2d.OffsetFlattener2d.flatten
(OffsetCurve2d curve, ContinuousPiecewiseLinearFunction of) Flatten a OffsetCurve2d curve into a PolyLine2d while applying lateral offsets.OffsetFlattener2d.MaxAngle.flatten
(OffsetCurve2d curve, ContinuousPiecewiseLinearFunction of) OffsetFlattener2d.MaxDeviation.flatten
(OffsetCurve2d curve, ContinuousPiecewiseLinearFunction of) OffsetFlattener2d.MaxDeviationAndAngle.flatten
(OffsetCurve2d curve, ContinuousPiecewiseLinearFunction of) OffsetFlattener2d.NumSegments.flatten
(OffsetCurve2d curve, ContinuousPiecewiseLinearFunction of) Straight2d.offset
(ContinuousPiecewiseLinearFunction offsets) Offset a PolyLine2d based on variable offset.Arc2d.toPolyLine
(Flattener2d flattener) Arc2d.toPolyLine
(OffsetFlattener2d flattener, ContinuousPiecewiseLinearFunction offsets) Bezier2d.toPolyLine
(Flattener2d flattener) BezierCubic2d.toPolyLine
(Flattener2d flattener) BezierCubic2d.toPolyLine
(OffsetFlattener2d flattener, ContinuousPiecewiseLinearFunction of) Clothoid2d.toPolyLine
(Flattener2d flattener) Clothoid2d.toPolyLine
(OffsetFlattener2d flattener, ContinuousPiecewiseLinearFunction offsets) OffsetCurve2d.toPolyLine
(OffsetFlattener2d flattener, ContinuousPiecewiseLinearFunction offsets) Flatten a Curve2d while offsetting with the provided continuous offset into a PolyLine2d.Straight2d.toPolyLine
(Flattener2d flattener) Straight2d.toPolyLine
(OffsetFlattener2d flattener, ContinuousPiecewiseLinearFunction offsets) -
Uses of PolyLine2d in org.djutils.draw.line
Subclasses of PolyLine2d in org.djutils.draw.lineMethods in org.djutils.draw.line that return PolyLine2dModifier and TypeMethodDescriptionstatic PolyLine2d
PolyLine2d.concatenate
(double tolerance, PolyLine2d... lines) Concatenate several PolyLine2d instances.static PolyLine2d
PolyLine2d.concatenate
(double tolerance, PolyLine2d line1, PolyLine2d line2) Concatenate two PolyLine2d instances.static PolyLine2d
PolyLine2d.concatenate
(PolyLine2d... lines) Concatenate several PolyLine2d instances.PolyLine2d.extract
(double start, double end) PolyLine2d.instantiate
(double epsilon, List<Point2d> pointList) final PolyLine2d
PolyLine2d.noiseFilteredLine
(double noiseLevel) final PolyLine2d
PolyLine2d.offsetLine
(double[] relativeFractions, double[] offsets, double offsetMinimumFilterValue) PolyLine2d.offsetLine
(double offset, double circlePrecision, double offsetMinimumFilterValue, double offsetMaximumFilterValue, double offsetFilterRatio, double minimumOffset) PolyLine2d.offsetLine
(double offsetAtStart, double offsetAtEnd, double circlePrecision, double offsetMinimumFilterValue, double offsetMaximumFilterValue, double offsetFilterRatio, double minimumOffset) PolyLine3d.project()
PolyLine2d.transitionLine
(PolyLine2d endLine, PolyLine.TransitionFunction transition) PolyLine2d.truncate
(double position) Methods in org.djutils.draw.line with parameters of type PolyLine2dModifier and TypeMethodDescriptionstatic PolyLine2d
PolyLine2d.concatenate
(double tolerance, PolyLine2d... lines) Concatenate several PolyLine2d instances.static PolyLine2d
PolyLine2d.concatenate
(double tolerance, PolyLine2d line1, PolyLine2d line2) Concatenate two PolyLine2d instances.static PolyLine2d
PolyLine2d.concatenate
(PolyLine2d... lines) Concatenate several PolyLine2d instances.PolyLine2d.transitionLine
(PolyLine2d endLine, PolyLine.TransitionFunction transition) Constructors in org.djutils.draw.line with parameters of type PolyLine2dModifierConstructorDescriptionPolyLine2d
(PolyLine2d polyLine) Construct a new PolyLine2d from an existing one.