Package cds.healpix.common.sphgeom
Enum Class Polygon.ContainsSouthPoleComputer
java.lang.Object
java.lang.Enum<Polygon.ContainsSouthPoleComputer>
cds.healpix.common.sphgeom.Polygon.ContainsSouthPoleComputer
- All Implemented Interfaces:
Serializable
,Comparable<Polygon.ContainsSouthPoleComputer>
,Constable
- Enclosing class:
Polygon
public static enum Polygon.ContainsSouthPoleComputer
extends Enum<Polygon.ContainsSouthPoleComputer>
Defines the method used to know if the south pole is in the polygon or in its complement.
- Author:
- F.-X. Pineau
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionConsider the south pole to be inside the polygon if the sum of consecutive longitude differences equals 2pi and if there is more vertices in the south hemisphere than in the north hemisphere.We explicilty tell that the south pole is NOT inside the polygon.We explicitly tell that the south pole is inside the polygon.Consider that the gravity center of the first 3 non-aligned vertices is inside the polygon if it is on the left of the first two edges, then test is the south pole is inside or outside the polygon.Consider that the inside of the polygon is always located on the left part of each edge (thus, the inside become the outside when considering the vertices list in reverse order), then test is the south pole is inside or outside the polygon. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static Polygon.ContainsSouthPoleComputer[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
PROVIDED_TRUE
We explicitly tell that the south pole is inside the polygon. -
PROVIDED_FALSE
We explicilty tell that the south pole is NOT inside the polygon. -
BASIC
Consider the south pole to be inside the polygon if the sum of consecutive longitude differences equals 2pi and if there is more vertices in the south hemisphere than in the north hemisphere. -
STD_FXP
Consider that the gravity center of the first 3 non-aligned vertices is inside the polygon if it is on the left of the first two edges, then test is the south pole is inside or outside the polygon. -
STD_IVOA
Consider that the inside of the polygon is always located on the left part of each edge (thus, the inside become the outside when considering the vertices list in reverse order), then test is the south pole is inside or outside the polygon. WARNING: Valid only for non self-intersecting polygons. WARNING: NOT IMPLENTED YET (I HAVE TO SEE HOW TO IMPLEMENT IT FOR CONCAVE POLYGONS).
-
-
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
-