Package org.opentrafficsim.base.geometry
Enum Class FractionalProjectionHelper.FractionalFallback
java.lang.Object
java.lang.Enum<FractionalProjectionHelper.FractionalFallback>
org.opentrafficsim.base.geometry.FractionalProjectionHelper.FractionalFallback
- All Implemented Interfaces:
Serializable,Comparable<FractionalProjectionHelper.FractionalFallback>,Constable
- Enclosing class:
- FractionalProjectionHelper
public static enum FractionalProjectionHelper.FractionalFallback
extends Enum<FractionalProjectionHelper.FractionalFallback>
Fallback strategies for when fractional projection is not applicable.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionNearest end-point as fraction <0 before start, >1 after end.Return NaN.Orthogonal projection clamped to [0,1].Orthogonal projection allowing extension beyond end-points. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ORTHOGONAL
Orthogonal projection clamped to [0,1]. -
ORTHOGONAL_EXTENDED
Orthogonal projection allowing extension beyond end-points. -
ENDPOINT
Nearest end-point as fraction <0 before start, >1 after end. -
NaN
Return NaN.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-