public final class OTSBuffering extends Object
Copyright (c) 2013-2015 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
$LastChangedDate: 2015-07-16 10:20:53 +0200 (Thu, 16 Jul 2015) $, @version $Revision: 1124 $, by $Author: pknoppers $,
initial version Jul 22, 2015
Modifier and Type | Method and Description |
---|---|
static OTSLine3D |
constructContour(CrossSectionElement cse)
Construct a buffer geometry by offsetting the linear geometry line with a distance and constructing a so-called "buffer"
around it.
|
static OTSLine3D |
offsetGeometry(OTSLine3D referenceLine,
double offset)
Generate a Geometry that has a fixed offset from a reference Geometry.
|
static OTSLine3D |
offsetLine(OTSLine3D referenceLine,
double offsetAtStart,
double offsetAtEnd)
Create the Geometry of a line at offset from a reference line.
|
public static OTSLine3D offsetGeometry(OTSLine3D referenceLine, double offset) throws OTSGeometryException
referenceLine
- Geometry; the reference lineoffset
- double; offset distance from the reference line; positive is LEFT, negative is RIGHTOTSGeometryException
- on failurepublic static OTSLine3D offsetLine(OTSLine3D referenceLine, double offsetAtStart, double offsetAtEnd) throws OTSGeometryException
referenceLine
- Geometry; the Geometry of the reference lineoffsetAtStart
- double; offset at the start of the reference line (positive value is Left, negative value is Right)offsetAtEnd
- double; offset at the end of the reference line (positive value is Left, negative value is Right)OTSGeometryException
- when this method fails to create the offset linepublic static OTSLine3D constructContour(CrossSectionElement cse) throws OTSGeometryException
cse
- the CrossSectionElement to construct the contour forOTSGeometryException
- when construction of the geometry failsCopyright © 2014–2015 Delft University of Technology. All rights reserved.