Uses of Class
org.opentrafficsim.base.geometry.OtsLine2d
Packages that use OtsLine2d
-
Uses of OtsLine2d in org.opentrafficsim.base.geometry
Subclasses of OtsLine2d in org.opentrafficsim.base.geometryModifier and TypeClassDescriptionclass
Adds a direction at the start and end point relative to its super classOtsLine2d
, as the first and last segment may not have the same direction as a theoretical line the segments are a numerical approach of.Methods in org.opentrafficsim.base.geometry that return OtsLine2dModifier and TypeMethodDescriptionstatic OtsLine2d
OtsLine2d.concatenate
(double toleranceSI, OtsLine2d... lines) Concatenate several OtsLine2d instances.static OtsLine2d
OtsLine2d.concatenate
(double toleranceSI, OtsLine2d line1, OtsLine2d line2) Concatenate two OtsLine2d instances.static OtsLine2d
OtsLine2d.concatenate
(OtsLine2d... lines) Concatenate several OtsLine2d instances.final OtsLine2d
OtsLine2d.extract
(double start, double end) Create a new OtsLine2d that covers a sub-section of this OtsLine2d.final OtsLine2d
OtsLine2d.extract
(org.djunits.value.vdouble.scalar.Length start, org.djunits.value.vdouble.scalar.Length end) Create a new OtsLine2d that covers a sub-section of this OtsLine2d.OtsLine2d.extractFractional
(double start, double end) Construct a new OtsLine2d covering the indicated fraction of this OtsLine2d.final OtsLine2d
OtsLine2d.offsetLine
(double offset) Construct parallel line.final OtsLine2d
OtsLine2d.offsetLine
(double[] relativeFractions, double[] offsets) Create a line at linearly varying offset from this line.final OtsLine2d
OtsLine2d.offsetLine
(double offsetAtStart, double offsetAtEnd) Create a line at linearly varying offset from this line.final OtsLine2d
OtsLine2d.reverse()
Construct a new OtsLine2d with all points of this OtsLine2d in reverse order.final OtsLine2d
OtsLine2d.truncate
(double lengthSI) Truncate a line at the given length (less than the length of the line, and larger than zero) and return a new line.Methods in org.opentrafficsim.base.geometry with parameters of type OtsLine2dModifier and TypeMethodDescriptionstatic OtsLine2d
OtsLine2d.concatenate
(double toleranceSI, OtsLine2d... lines) Concatenate several OtsLine2d instances.static OtsLine2d
OtsLine2d.concatenate
(double toleranceSI, OtsLine2d line1, OtsLine2d line2) Concatenate two OtsLine2d instances.static OtsLine2d
OtsLine2d.concatenate
(OtsLine2d... lines) Concatenate several OtsLine2d instances.(package private) abstract double
OtsLine2d.FractionalFallback.getFraction
(OtsLine2d line, double x, double y) Returns fraction for when fractional projection fails as the point is beyond the line or from numerical limitations.