Package org.arakhne.afc.math.geometry
Enum CrossingComputationType
- java.lang.Object
-
- java.lang.Enum<CrossingComputationType>
-
- org.arakhne.afc.math.geometry.CrossingComputationType
-
- All Implemented Interfaces:
Serializable
,Comparable<CrossingComputationType>
public enum CrossingComputationType extends Enum<CrossingComputationType>
Type of computation for the crossing of the path's shadow with a shape.- Since:
- 13.0
- Version:
- 17.0 2020-01-04 14:41:43
- Author:
- Stéphane GALLAND
- Maven Group Id:
- org.arakhne.afc.core
- Maven Artifact Id:
- mathgeom
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AUTO_CLOSE
The path is automatically close by the crossing computation function.SIMPLE_INTERSECTION_WHEN_NOT_POLYGON
When the path is not a polygon, i.e. not closed, the crossings will only consider the shape intersection only.STANDARD
The crossing is computed with the default standard approach.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CrossingComputationType
valueOf(String name)
Returns the enum constant of this type with the specified name.static CrossingComputationType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
STANDARD
public static final CrossingComputationType STANDARD
The crossing is computed with the default standard approach.
-
AUTO_CLOSE
public static final CrossingComputationType AUTO_CLOSE
The path is automatically close by the crossing computation function.
-
SIMPLE_INTERSECTION_WHEN_NOT_POLYGON
public static final CrossingComputationType SIMPLE_INTERSECTION_WHEN_NOT_POLYGON
When the path is not a polygon, i.e. not closed, the crossings will only consider the shape intersection only. The other crossing values will be assumed to be always equal to zero.
-
-
Method Detail
-
values
public static CrossingComputationType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (CrossingComputationType c : CrossingComputationType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CrossingComputationType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
-