Enum BinaryTreeNode.BinaryTreeZone

    • Enum Constant Detail

      • LEFT

        public static final BinaryTreeNode.BinaryTreeZone LEFT
        This is the index of the child that correspond to the voxel at front/left/up position.
      • RIGHT

        public static final BinaryTreeNode.BinaryTreeZone RIGHT
        This is the index of the child that correspond to the voxel at back/right/down position.
    • Method Detail

      • values

        public static BinaryTreeNode.BinaryTreeZone[] 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 (BinaryTreeNode.BinaryTreeZone c : BinaryTreeNode.BinaryTreeZone.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static BinaryTreeNode.BinaryTreeZone 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 name
        NullPointerException - if the argument is null
      • fromInteger

        @Pure
        public static BinaryTreeNode.BinaryTreeZone 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