Package org.arakhne.afc.math.tree.node
Enum IcosepBinaryTreeNode.IcosepBinaryTreeZone
- java.lang.Object
-
- java.lang.Enum<IcosepBinaryTreeNode.IcosepBinaryTreeZone>
-
- org.arakhne.afc.math.tree.node.IcosepBinaryTreeNode.IcosepBinaryTreeZone
-
- All Implemented Interfaces:
Serializable
,Comparable<IcosepBinaryTreeNode.IcosepBinaryTreeZone>
- Enclosing class:
- IcosepBinaryTreeNode<D,N extends IcosepBinaryTreeNode<D,N>>
public static enum IcosepBinaryTreeNode.IcosepBinaryTreeZone extends Enum<IcosepBinaryTreeNode.IcosepBinaryTreeZone>
This is the generic implementation of a tree for which each node has two children.- Since:
- 13.0
- Version:
- 17.0 2020-01-04 14:41:41
- Author:
- Stéphane GALLAND
- Maven Group Id:
- org.arakhne.afc.core
- Maven Artifact Id:
- mathtree
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static IcosepBinaryTreeNode.IcosepBinaryTreeZone
fromInteger(int index)
Replies the zone corresponding to the given index.BinaryTreeNode.BinaryTreeZone
toBinaryTreeZone()
Replies the octtree zone that is corresponding to this zone.static IcosepBinaryTreeNode.IcosepBinaryTreeZone
valueOf(String name)
Returns the enum constant of this type with the specified name.static IcosepBinaryTreeNode.IcosepBinaryTreeZone[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LEFT
public static final IcosepBinaryTreeNode.IcosepBinaryTreeZone LEFT
This is the index of the child that correspond to the voxel at front/left/up position.
-
RIGHT
public static final IcosepBinaryTreeNode.IcosepBinaryTreeZone RIGHT
This is the index of the child that correspond to the voxel at back/right/down position.
-
ICOSEP
public static final IcosepBinaryTreeNode.IcosepBinaryTreeZone ICOSEP
intersection zone.
-
-
Method Detail
-
values
public static IcosepBinaryTreeNode.IcosepBinaryTreeZone[] 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 (IcosepBinaryTreeNode.IcosepBinaryTreeZone c : IcosepBinaryTreeNode.IcosepBinaryTreeZone.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static IcosepBinaryTreeNode.IcosepBinaryTreeZone 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
-
toBinaryTreeZone
public BinaryTreeNode.BinaryTreeZone toBinaryTreeZone()
Replies the octtree zone that is corresponding to this zone.- Returns:
- a quadtree zone
-
fromInteger
@Pure public static IcosepBinaryTreeNode.IcosepBinaryTreeZone fromInteger(int index)
Replies the zone corresponding to the given index. The index is the same as the ordinal value of the enumeration. If the given index does not correspond to an ordinal value,null
is replied.- Parameters:
index
- the index.- Returns:
- the zone or
null
-
-