public static enum OTSLine3D.FractionalFallback extends Enum<OTSLine3D.FractionalFallback>
Copyright (c) 2013-2018 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
Enum Constant and Description |
---|
ENDPOINT
Distance to nearest end point.
|
NaN
NaN value.
|
ORTHOGONAL
Orthogonal projection.
|
Modifier and Type | Method and Description |
---|---|
(package private) abstract double |
getFraction(OTSLine3D line,
double x,
double y)
Returns fraction for when fractional projection fails as the point is beyond the line or from numerical limitations.
|
static OTSLine3D.FractionalFallback |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static OTSLine3D.FractionalFallback[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OTSLine3D.FractionalFallback ORTHOGONAL
public static final OTSLine3D.FractionalFallback ENDPOINT
public static final OTSLine3D.FractionalFallback NaN
public static OTSLine3D.FractionalFallback[] values()
for (OTSLine3D.FractionalFallback c : OTSLine3D.FractionalFallback.values()) System.out.println(c);
public static OTSLine3D.FractionalFallback valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullabstract double getFraction(OTSLine3D line, double x, double y)
line
- OTSLine3D; linex
- double; x coordinate of pointy
- double; y coordinate of pointCopyright © 2014–2018 Delft University of Technology. All rights reserved.