public final class OTSOffsetLinePK extends Object
Copyright (c) 2013-2017 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
Modifier and Type | Field and Description |
---|---|
(package private) static double |
circlePrecision
Precision of approximation of arcs in the offsetLine method.
|
(package private) static boolean |
debugOffsetLine
Debugging flag.
|
(package private) static double |
offsetFilterRatio
Noise in the reference line less than offset / offsetFilterRatio is filtered except when the resulting value
exceeds offsetMaximumFilterValue.
|
(package private) static double |
offsetMaximumFilterValue
Noise in the reference line greater than this value is never filtered.
|
(package private) static double |
offsetMinimumFilterValue
Noise in the reference line less than this value is always filtered.
|
Modifier and Type | Method and Description |
---|---|
static OTSLine3D |
offsetLine(OTSLine3D referenceLine,
double offset)
Construct an offset line.
|
static boolean debugOffsetLine
static double circlePrecision
static double offsetMinimumFilterValue
static double offsetMaximumFilterValue
static double offsetFilterRatio
public static OTSLine3D offsetLine(OTSLine3D referenceLine, double offset) throws OTSGeometryException
referenceLine
- OTSLine3D; the reference lineoffset
- double; the offset; positive values indicate left of the reference line, negative values indicate right of
the reference lineOTSGeometryException
- when this method runs into major trouble and cannot produce a decent resultCopyright © 2014–2017 Delft University of Technology. All rights reserved.