| Package | Description |
|---|---|
| org.opentrafficsim.core.geometry |
Copyright (c) 2013-2015 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.
|
| Modifier and Type | Method and 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,
org.djunits.value.vdouble.scalar.Angle.Abs startDirection,
double startCurvature,
double endCurvature,
org.djunits.value.vdouble.scalar.Length.Rel length,
org.djunits.value.vdouble.scalar.Length.Rel endElevation,
int numSegments)
Approximate a clothoid.
|
static OTSLine3D |
Clothoid.clothoid(OTSPoint3D start,
org.djunits.value.vdouble.scalar.Angle.Abs startDirection,
double endCurvature,
org.djunits.value.vdouble.scalar.Length.Rel length,
org.djunits.value.vdouble.scalar.Length.Rel endElevation,
int numSegments)
Approximate a clothoid with curvature 0 at start.
|
static OTSLine3D |
Clothoid.clothoid(OTSPoint3D start,
org.djunits.value.vdouble.scalar.Angle.Abs startDirection,
org.djunits.value.vdouble.scalar.LinearDensity endCurvature,
org.djunits.value.vdouble.scalar.Length.Rel length,
org.djunits.value.vdouble.scalar.Length.Rel endElevation,
int numSegments)
Approximate a clothoid with curvature 0 at start.
|
static OTSLine3D |
Clothoid.clothoid(OTSPoint3D start,
org.djunits.value.vdouble.scalar.Angle.Abs startDirection,
org.djunits.value.vdouble.scalar.LinearDensity startCurvature,
org.djunits.value.vdouble.scalar.LinearDensity endCurvature,
org.djunits.value.vdouble.scalar.Length.Rel length,
org.djunits.value.vdouble.scalar.Length.Rel endElevation,
int numSegments)
Approximate a clothoid.
|
static OTSLine3D |
OTSLine3D.concatenate(double toleranceSI,
OTSLine3D... lines)
Concatenate several 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(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)
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.
|
OTSLine3D |
OTSLine3D.extract(double start,
double end)
Create a new OTSLine3D that covers a sub-section of this OTSLine3D.
|
OTSLine3D |
OTSLine3D.extract(org.djunits.value.vdouble.scalar.Length.Rel start,
org.djunits.value.vdouble.scalar.Length.Rel 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.
|
OTSPoint3D |
OTSLine3D.get(int i)
Return one point of this OTSLine3D.
|
DirectedPoint |
OTSLine3D.getLocation(org.djunits.value.vdouble.scalar.Length.Rel position)
Get the location at a position on the line, with its direction.
|
DirectedPoint |
OTSLine3D.getLocationFraction(double fraction)
Get the location at a fraction of the line, with its direction.
|
DirectedPoint |
OTSLine3D.getLocationFraction(double fraction,
double tolerance)
Get the location at a fraction of the line, with its direction.
|
DirectedPoint |
OTSLine3D.getLocationSI(double positionSI)
Get the location at a position on the line, with its direction.
|
static void |
Test2.main(String[] args) |
static void |
Test.main(String[] args) |
static void |
OTSLine3D.main(String[] args) |
static void |
OTSBufferingJTS.main(String[] args) |
static void |
OTSBufferingAV.main(String[] args) |
static void |
Clothoid.main(String[] args)
Demonstrate / test the clothoid methods.
|
static void |
Bezier.main(String[] args) |
static OTSLine3D |
OTSBufferingJTS.offsetGeometryOLD(OTSLine3D referenceLine,
double offset)
Generate a Geometry that has a fixed offset from a reference Geometry.
|
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.
|
static OTSLine3D |
OTSBufferingAV.offsetLine(OTSLine3D line,
double offset) |
static OTSLine3D |
OTSBufferingJTS.offsetLine(OTSLine3D referenceLine,
double offsetAtStart,
double offsetAtEnd)
Create a line at linearly varying offset from a reference line.
|
static void |
Test.test1()
Kink near end of design line.
|
static void |
Test.test2()
Kink halfway (far from any endpoint).
|
static void |
Test.test3()
Kink plus decreasing width.
|
static void |
Test.test4()
Two kinks, (too) close together.
|
static void |
Test.test5()
Two-segment design line with minimal change of direction.
|
static void |
Test.test6()
Straight design line with some noise (sufficiently far from the end points).
|
static void |
Test.test7()
Straight design line with more noise (sufficiently far from the end points).
|
static void |
Test.test8()
Straight design line with more noise (close to the end points).
|
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.
|
| Constructor and Description |
|---|
OTSLine3D(com.vividsolutions.jts.geom.Coordinate[] coordinates)
Construct a new OTSLine3D from an array of Coordinate.
|
OTSLine3D(com.vividsolutions.jts.geom.Geometry geometry)
Construct a new OTSLine3D from a Geometry.
|
OTSLine3D(com.vividsolutions.jts.geom.LineString lineString)
Construct a new OTSLine3D from a LineString.
|
OTSLine3D(List<OTSPoint3D> pointList)
Construct a new OTSLine3D from a List<OTSPoint3D>.
|
OTSLine3D(OTSPoint3D... points)
Construct a new OTSLine3D.
|
OTSPolygon3D(com.vividsolutions.jts.geom.Coordinate[] coordinates) |
OTSPolygon3D(com.vividsolutions.jts.geom.Geometry geometry) |
OTSPolygon3D(com.vividsolutions.jts.geom.LineString lineString) |
OTSPolygon3D(OTSPoint3D[] points) |
| Modifier and Type | Method and Description |
|---|---|
static void |
OperationalPlanBuilder.main(String[] args)
Test.
|
Copyright © 2014–2016 Delft University of Technology. All rights reserved.