| Package | Description |
|---|---|
| org.opentrafficsim.core.geometry |
Copyright (c) 2013-2016 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 TestIntersectionPerformance.Results |
TestIntersectionPerformance.baseTest(int numShapes,
int numVertices,
double desiredHitFraction,
int numRuns,
boolean verbose,
int variant)
Perform a test.
|
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.Direction startDirection,
double startCurvature,
double endCurvature,
org.djunits.value.vdouble.scalar.Length length,
org.djunits.value.vdouble.scalar.Length endElevation,
int numSegments)
Approximate a clothoid.
|
static OTSLine3D |
Clothoid.clothoid(OTSPoint3D start,
org.djunits.value.vdouble.scalar.Direction startDirection,
double endCurvature,
org.djunits.value.vdouble.scalar.Length length,
org.djunits.value.vdouble.scalar.Length endElevation,
int numSegments)
Approximate a clothoid with curvature 0 at start.
|
static OTSLine3D |
Clothoid.clothoid(OTSPoint3D start,
org.djunits.value.vdouble.scalar.Direction startDirection,
org.djunits.value.vdouble.scalar.LinearDensity endCurvature,
org.djunits.value.vdouble.scalar.Length length,
org.djunits.value.vdouble.scalar.Length endElevation,
int numSegments)
Approximate a clothoid with curvature 0 at start.
|
static OTSLine3D |
Clothoid.clothoid(OTSPoint3D start,
org.djunits.value.vdouble.scalar.Direction startDirection,
org.djunits.value.vdouble.scalar.LinearDensity startCurvature,
org.djunits.value.vdouble.scalar.LinearDensity endCurvature,
org.djunits.value.vdouble.scalar.Length length,
org.djunits.value.vdouble.scalar.Length 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 OTSShape |
OTSShape.createAndCleanOTSShape(List<OTSPoint3D> pointList)
Create an OTSLine3D, while cleaning repeating successive points.
|
static OTSShape |
OTSShape.createAndCleanOTSShape(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,
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,
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 start,
org.djunits.value.vdouble.scalar.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.
|
OTSPoint3D |
OTSLine3D.get(int i)
Return one point of this OTSLine3D.
|
DirectedPoint |
OTSLine3D.getLocation(org.djunits.value.vdouble.scalar.Length 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 |
TestIntersectionPerformance.main(String[] args)
Measure the performance.
|
static void |
Test2.main(String[] args) |
static void |
Test.main(String[] args) |
static void |
OTSShape.main(String[] args)
Small test.
|
static void |
OTSLine3D.main(String[] args) |
static void |
OTSBufferingJTS.main(String[] args) |
static void |
Clothoid.main(String[] args)
Demonstrate / test the clothoid methods.
|
static void |
Bezier.main(String[] args) |
(package private) static OTSShape |
TestIntersectionPerformance.makeNGon(int numVertices,
double r,
double cX,
double cY)
Create and return an OTSShape.
|
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 |
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 |
|---|
OTS2DSet(Rectangle2D boundingBox,
double minimumCellSize)
Construct an empty OTS2DSet for a rectangular region.
|
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.
|
OTSLine3D(Path2D path)
Construct a new OTSShape (closed shape) from a Path2D.
|
OTSShape(com.vividsolutions.jts.geom.Coordinate[] coordinates)
Construct a new OTSShape (closed shape) from an array of Coordinate.
|
OTSShape(com.vividsolutions.jts.geom.Geometry geometry)
Construct a new OTSShape (closed shape) from a Geometry.
|
OTSShape(com.vividsolutions.jts.geom.LineString lineString)
Construct a new OTSShape (closed shape) from a LineString.
|
OTSShape(List<OTSPoint3D> pointList)
Construct a new OTSShape (closed shape) from a List<OTSPoint3D>.
|
OTSShape(OTSPoint3D... points)
Construct a new OTSShape (closed shape).
|
OTSShape(Path2D path)
Construct a new OTSShape (closed shape) from a Path2D.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
OperationalPlanBuilder.main(String[] args)
Test.
|
Copyright © 2014–2017 Delft University of Technology. All rights reserved.