Uses of Class
org.opentrafficsim.core.geometry.OTSLine3D
-
Packages that use OTSLine3D Package Description org.opentrafficsim.core.geometry Copyright (c) 2013-2022 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands.org.opentrafficsim.core.gtu.plan.operational Operational plans describe a path through the world with a speed profile that a GTU intends to follow.org.opentrafficsim.core.network Classes that build a network with nodes, links, and cross-sections.org.opentrafficsim.core.object Static objects that the GTU might have to avoid. -
-
Uses of OTSLine3D in org.opentrafficsim.core.geometry
Subclasses of OTSLine3D in org.opentrafficsim.core.geometry Modifier and Type Class Description class
OTSShape
Copyright (c) 2013-2022 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands.Methods in org.opentrafficsim.core.geometry that return OTSLine3D Modifier and Type Method Description static OTSLine3D
Bezier. bezier(int numPoints, OTSPoint3D... points)
Construct a Bézier curve of degree n.static OTSLine3D
Bezier. bezier(OTSPoint3D... points)
Construct a Bézier curve of degree n.static OTSLine3D
Clothoid. clothoid(OTSPoint3D start, Direction startDirection, double startCurvature, double endCurvature, Length length, Length endElevation, int numSegments)
Approximate a clothoid.static OTSLine3D
Clothoid. clothoid(OTSPoint3D start, Direction startDirection, double endCurvature, Length length, Length endElevation, int numSegments)
Approximate a clothoid with curvature 0 at start.static OTSLine3D
Clothoid. clothoid(OTSPoint3D start, Direction startDirection, LinearDensity endCurvature, Length length, Length endElevation, int numSegments)
Approximate a clothoid with curvature 0 at start.static OTSLine3D
Clothoid. clothoid(OTSPoint3D start, Direction startDirection, LinearDensity startCurvature, LinearDensity endCurvature, Length length, Length endElevation, int numSegments)
Approximate a clothoid.static OTSLine3D
OTSLine3D. concatenate(double toleranceSI, OTSLine3D... lines)
Concatenate several OTSLine3D instances.static OTSLine3D
OTSLine3D. concatenate(double toleranceSI, OTSLine3D line1, OTSLine3D line2)
Concatenate two OTSLine3D instances.static OTSLine3D
OTSLine3D. concatenate(OTSLine3D... lines)
Concatenate several OTSLine3D instances.static OTSLine3D
OTSLine3D. createAndCleanOTSLine3D(List<OTSPoint3D> pointList)
Create an OTSLine3D, while cleaning repeating successive points.static OTSLine3D
OTSLine3D. createAndCleanOTSLine3D(OTSPoint3D... points)
Create an OTSLine3D, while cleaning repeating successive points.static OTSLine3D
Bezier. cubic(int numPoints, DirectedPoint start, DirectedPoint end)
Construct a cubic Bézier curve from start to end with two generated control points at half the distance between start and end.static OTSLine3D
Bezier. cubic(int numPoints, DirectedPoint start, DirectedPoint end, double shape)
Construct a cubic Bézier curve from start to end with two generated control points at half the distance between start and end.static OTSLine3D
Bezier. cubic(int numPoints, DirectedPoint start, DirectedPoint end, double shape, boolean weighted)
Construct a cubic Bézier curve from start to end with two generated control points at half the distance between start and end.static OTSLine3D
Bezier. cubic(int numPoints, OTSPoint3D start, OTSPoint3D control1, OTSPoint3D control2, OTSPoint3D end)
Construct a cubic Bézier curve from start to end with two control points.static OTSLine3D
Bezier. cubic(DirectedPoint start, DirectedPoint end)
Construct a cubic Bézier curve from start to end with two generated control points at half the distance between start and end.OTSLine3D
OTSLine3D. extract(double start, double end)
Create a new OTSLine3D that covers a sub-section of this OTSLine3D.OTSLine3D
OTSLine3D. extract(Length start, Length end)
Create a new OTSLine3D that covers a sub-section of this OTSLine3D.OTSLine3D
OTSLine3D. extractFractional(double start, double end)
Construct a new OTSLine3D covering the indicated fraction of this OTSLine3D.OTSLine3D
OTSLine3D. noiseFilteredLine(double noiseLevel)
Construct a line that is equal to this line except for segments that are shorter than the noiseLevel.OTSLine3D
OTSLine3D. noiseFilterRamerDouglasPeucker(double epsilon, boolean useHorizontalDistance)
Clean up a list of points that describe a polyLine by removing points that lie within epsilon distance of a more straightened version of the line.static OTSLine3D
OTSBufferingJTS. offsetLine(OTSLine3D referenceLine, double offset)
Construct parallel line without.static OTSLine3D
OTSBufferingJTS. offsetLine(OTSLine3D referenceLine, double offsetAtStart, double offsetAtEnd)
Create a line at linearly varying offset from a reference line.OTSLine3D
OTSLine3D. offsetLine(double offset)
Construct parallel line.
TODO Let the Z-component of the result follow the Z-values of the reference line.OTSLine3D
OTSLine3D. offsetLine(double[] relativeFractions, double[] offsets)
Create a line at linearly varying offset from this line.OTSLine3D
OTSLine3D. offsetLine(double offsetAtStart, double offsetAtEnd)
Create a line at linearly varying offset from this line.static OTSLine3D
OTSOffsetLinePK. offsetLine(OTSLine3D referenceLine, double offset)
Construct an offset line.OTSLine3D
OTSLine3D. reverse()
Construct a new OTSLine3D with all points of this OTSLine3D in reverse order.OTSLine3D
OTSLine3D. 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.core.geometry with parameters of type OTSLine3D Modifier and Type Method Description OTSPoint3D
OTSPoint3D. closestPointOnLine(OTSLine3D line)
Return the closest point on an OTSLine3D.OTSPoint3D
OTSPoint3D. closestPointOnLine2D(OTSLine3D line)
Return the closest point on an OTSLine3D.static OTSLine3D
OTSLine3D. concatenate(double toleranceSI, OTSLine3D... lines)
Concatenate several OTSLine3D instances.static OTSLine3D
OTSLine3D. concatenate(double toleranceSI, OTSLine3D line1, OTSLine3D line2)
Concatenate two OTSLine3D instances.static OTSLine3D
OTSLine3D. concatenate(OTSLine3D... lines)
Concatenate several OTSLine3D instances.(package private) abstract double
OTSLine3D.FractionalFallback. getFraction(OTSLine3D line, double x, double y)
Returns fraction for when fractional projection fails as the point is beyond the line or from numerical limitations.static OTSLine3D
OTSBufferingJTS. offsetLine(OTSLine3D referenceLine, double offset)
Construct parallel line without.static OTSLine3D
OTSBufferingJTS. offsetLine(OTSLine3D referenceLine, double offsetAtStart, double offsetAtEnd)
Create a line at linearly varying offset from a reference line.static OTSLine3D
OTSOffsetLinePK. offsetLine(OTSLine3D referenceLine, double offset)
Construct an offset line.static String
OTSGeometryUtil. printCoordinates(String prefix, OTSLine3D line, String separator)
Build a string description from an OTSLine3D. -
Uses of OTSLine3D in org.opentrafficsim.core.gtu.plan.operational
Methods in org.opentrafficsim.core.gtu.plan.operational that return OTSLine3D Modifier and Type Method Description OTSLine3D
OperationalPlan. getPath()
Return the path that will be traveled.Methods in org.opentrafficsim.core.gtu.plan.operational with parameters of type OTSLine3D Modifier and Type Method Description static OperationalPlan
OperationalPlanBuilder. buildConstantSpeedPlan(GTU gtu, OTSLine3D path, Time startTime, Speed speed)
Build a plan with a path and a given speed.static OperationalPlan
OperationalPlanBuilder. buildGradualAccelerationPlan(GTU gtu, OTSLine3D path, Time startTime, Speed startSpeed, Speed endSpeed)
Build a plan with a path and a given start speed to reach a provided end speed, exactly at the end of the curve.static OperationalPlan
OperationalPlanBuilder. buildGradualAccelerationPlan(GTU gtu, OTSLine3D path, Time startTime, Speed startSpeed, Speed endSpeed, Acceleration maximumAcceleration, Acceleration maximumDeceleration)
Build a plan with a path and a given start speed to try to reach a provided end speed, exactly at the providedendTime
.static OperationalPlan
OperationalPlanBuilder. buildMaximumAccelerationPlan(GTU gtu, OTSLine3D path, Time startTime, Speed startSpeed, Speed endSpeed, Acceleration maximumAcceleration, Acceleration maximumDeceleration)
Build a plan with a path and a given start speed to try to reach a provided end speed.static OperationalPlan
OperationalPlanBuilder. buildStopPlan(GTU gtu, OTSLine3D path, Time startTime, Speed startSpeed, Acceleration deceleration)
Build a plan with a path and a given start speed to try to come to a stop with a given deceleration.Constructors in org.opentrafficsim.core.gtu.plan.operational with parameters of type OTSLine3D Constructor Description OperationalPlan(GTU gtu, OTSLine3D path, Time startTime, Speed startSpeed, List<OperationalPlan.Segment> operationalPlanSegmentList)
Construct an operational plan. -
Uses of OTSLine3D in org.opentrafficsim.core.network
Methods in org.opentrafficsim.core.network that return OTSLine3D Modifier and Type Method Description OTSLine3D
Link. getDesignLine()
OTSLine3D
OTSLink. getDesignLine()
Constructors in org.opentrafficsim.core.network with parameters of type OTSLine3D Constructor Description CapacityOTSLink(Network network, String id, Node startNode, Node endNode, LinkType linkType, OTSLine3D designLine, Frequency capacity)
Construct a new link.OTSLink(Network network, String id, Node startNode, Node endNode, LinkType linkType, OTSLine3D designLine)
Construct a new link. -
Uses of OTSLine3D in org.opentrafficsim.core.object
Methods in org.opentrafficsim.core.object that return OTSLine3D Modifier and Type Method Description OTSLine3D
ObjectInterface. getGeometry()
OTSLine3D
StaticObject. getGeometry()
Methods in org.opentrafficsim.core.object with parameters of type OTSLine3D Modifier and Type Method Description static StaticObject
StaticObject. create(String id, OTSLine3D geometry)
Make a static object with zero height and carry out the initialization after it has been fully created.static StaticObject
StaticObject. create(String id, OTSLine3D geometry, Length height)
Make a static object and carry out the initialization after it has been fully created.Constructors in org.opentrafficsim.core.object with parameters of type OTSLine3D Constructor Description StaticObject(String id, OTSLine3D geometry, Length height)
-