| 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.network |
Classes that build a network with nodes, links, and cross-sections.
|
| org.opentrafficsim.core.network.animation |
Animation for Links, Lanes, Nodes.
|
| org.opentrafficsim.core.network.factory.xml.units |
Copyright (c) 2013-2016 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands.
|
| org.opentrafficsim.core.perception |
The perception package takes care of registering perceivable objects that are used in an OTS study.
|
| Modifier and Type | Method and 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.
|
OTSPoint3D |
OTSPoint3D.closestPointOnSegment(OTSPoint3D segmentPoint1,
OTSPoint3D segmentPoint2)
Project a point on a line segment (2D - Z-component is ignored).
|
static OTSPoint3D |
OTSBufferingJTS.closestPointOnSegmentToPoint(OTSPoint3D lineP1,
OTSPoint3D lineP2,
OTSPoint3D point)
Project a point on a line (2D).
|
OTSPoint3D |
OTSLine3D.get(int i)
Return one point of this OTSLine3D.
|
OTSPoint3D |
OTSLine3D.getCentroid()
Retrieve the centroid of this OTSLine3D.
|
OTSPoint3D |
OTSLine3D.getFirst()
Return the first point of this OTSLine3D.
|
OTSPoint3D |
OTSLine3D.getLast()
Return the last point of this OTSLine3D.
|
OTSPoint3D[] |
OTSLine3D.getPoints()
Return an array of OTSPoint3D that represents this OTSLine3D.
|
static OTSPoint3D |
OTSPoint3D.interpolate(double ratio,
OTSPoint3D zeroValue,
OTSPoint3D oneValue)
Interpolate (or extrapolate) between (outside) two given points.
|
static OTSPoint3D |
OTSPoint3D.intersectionOfLines(OTSPoint3D line1P1,
OTSPoint3D line1P2,
OTSPoint3D line2P1,
OTSPoint3D line2P2)
Compute the 2D intersection of two infinite lines.
|
static OTSPoint3D |
OTSPoint3D.intersectionOfLineSegments(OTSPoint3D line1P1,
OTSPoint3D line1P2,
OTSPoint3D line2P1,
OTSPoint3D line2P2)
Compute the 2D intersection of two line segments.
|
OTSPoint3D |
OTSPoint3D.normalize()
Return the point with a length of 1 to the origin.
|
OTSPoint3D |
OTSPoint3D.translate(double factor)
Return this point translated by a factor from the origin.
|
| Modifier and Type | Method and Description |
|---|---|
static List<OTSPoint3D> |
OTSPoint3D.circleCenter(OTSPoint3D point1,
OTSPoint3D point2,
double radius)
Return the possible center points of a circle when two points and a radius are given.
|
| 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 List<OTSPoint3D> |
OTSPoint3D.circleCenter(OTSPoint3D point1,
OTSPoint3D point2,
double radius)
Return the possible center points of a circle when two points and a radius are given.
|
OTSPoint3D |
OTSPoint3D.closestPointOnSegment(OTSPoint3D segmentPoint1,
OTSPoint3D segmentPoint2)
Project a point on a line segment (2D - Z-component is ignored).
|
static OTSPoint3D |
OTSBufferingJTS.closestPointOnSegmentToPoint(OTSPoint3D lineP1,
OTSPoint3D lineP2,
OTSPoint3D point)
Project a point on a line (2D).
|
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.
|
boolean |
OTSShape.contains(OTSPoint3D point) |
static OTSLine3D |
OTSLine3D.createAndCleanOTSLine3D(OTSPoint3D... points)
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(int numPoints,
OTSPoint3D start,
OTSPoint3D control1,
OTSPoint3D control2,
OTSPoint3D end)
Construct a cubic Bézier curve from start to end with two control points.
|
org.djunits.value.vdouble.scalar.Length |
OTSPoint3D.distance(OTSPoint3D point) |
static double |
OTSBufferingJTS.distanceLineSegmentToPoint(OTSPoint3D lineP1,
OTSPoint3D lineP2,
OTSPoint3D point)
Compute the distance of a line segment to a point.
|
double |
OTSPoint3D.distanceSI(OTSPoint3D point) |
org.djunits.value.vdouble.scalar.Length |
OTSPoint3D.horizontalDistance(OTSPoint3D point) |
double |
OTSPoint3D.horizontalDistanceSI(OTSPoint3D point) |
static OTSPoint3D |
OTSPoint3D.interpolate(double ratio,
OTSPoint3D zeroValue,
OTSPoint3D oneValue)
Interpolate (or extrapolate) between (outside) two given points.
|
static OTSPoint3D |
OTSPoint3D.intersectionOfLines(OTSPoint3D line1P1,
OTSPoint3D line1P2,
OTSPoint3D line2P1,
OTSPoint3D line2P2)
Compute the 2D intersection of two infinite lines.
|
static OTSPoint3D |
OTSPoint3D.intersectionOfLineSegments(OTSPoint3D line1P1,
OTSPoint3D line1P2,
OTSPoint3D line2P1,
OTSPoint3D line2P2)
Compute the 2D intersection of two line segments.
|
static String |
OTSGeometryUtil.printCoordinate(String prefix,
OTSPoint3D point)
Print one OTSPoint3D on the console.
|
static String |
OTSGeometryUtil.printCoordinates(String prefix,
OTSPoint3D[] points,
int fromIndex,
int toIndex,
String separator)
Print part of an array of coordinates on the console.
|
static String |
OTSGeometryUtil.printCoordinates(String prefix,
OTSPoint3D[] coordinates,
String separator)
Print an array of coordinates on the console.
|
| Modifier and Type | Method and Description |
|---|---|
static OTSLine3D |
OTSLine3D.createAndCleanOTSLine3D(List<OTSPoint3D> pointList)
Create an OTSLine3D, while cleaning repeating successive points.
|
static OTSShape |
OTSShape.createAndCleanOTSShape(List<OTSPoint3D> pointList)
Create an OTSLine3D, while cleaning repeating successive points.
|
| Constructor and Description |
|---|
OTSLine3D(OTSPoint3D... points)
Construct a new OTSLine3D.
|
OTSPoint3D(OTSPoint3D point) |
OTSShape(OTSPoint3D... points)
Construct a new OTSShape (closed shape).
|
| Constructor and Description |
|---|
OTSLine3D(List<OTSPoint3D> pointList)
Construct a new OTSLine3D from a List<OTSPoint3D>.
|
OTSShape(List<OTSPoint3D> pointList)
Construct a new OTSShape (closed shape) from a List<OTSPoint3D>.
|
| Modifier and Type | Method and Description |
|---|---|
OTSPoint3D |
OTSNode.getPoint() |
OTSPoint3D |
Node.getPoint() |
| Constructor and Description |
|---|
OTSNode(Network network,
String id,
OTSPoint3D point)
Construction of a Node.
|
OTSNode(Network network,
String id,
OTSPoint3D point,
org.djunits.value.vdouble.scalar.Direction direction,
org.djunits.value.vdouble.scalar.Direction slope)
Construction of a Node.
|
| Modifier and Type | Field and Description |
|---|---|
static OTSPoint3D |
PaintPolygons.NEWPATH
Dummy coordinate that forces the drawing operation to start a new path.
|
static OTSPoint3D |
PaintLine.NEWPATH
Dummy coordinate that forces the drawing operation to start a new path.
|
| Modifier and Type | Method and Description |
|---|---|
static OTSPoint3D |
Coordinates.parseCoordinate(String cs)
Parse a coordinate with (x,y) or (x,y,z).
|
static OTSPoint3D[] |
Coordinates.parseCoordinates(String cs)
Parse a coordinate with (x,y) or (x,y,z).
|
| Modifier and Type | Method and Description |
|---|---|
OTSPoint3D |
PerceivedObject3D.getPerceivedLocation()
Get the perceived location of the object.
|
OTSPoint3D |
PerceivedObject2D.getPerceivedLocation()
Get the perceived location of the object.
|
Copyright © 2014–2016 Delft University of Technology. All rights reserved.