Enum Class UVAxis

java.lang.Object
java.lang.Enum<UVAxis>
kr.toxicity.library.dynamicuv.UVAxis
All Implemented Interfaces:
Serializable, Comparable<UVAxis>, Constable

public enum UVAxis extends Enum<UVAxis>
Represents the axes for UV mapping iteration.
  • Enum Constant Details

    • XZ

      public static final UVAxis XZ
      The XZ plane.
    • XY

      public static final UVAxis XY
      The XY plane.
    • ZY

      public static final UVAxis ZY
      The ZY plane.
  • Method Details

    • values

      public static UVAxis[] 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

      public static UVAxis valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • iterate

      public abstract void iterate(@NotNull @NotNull ElementVector from, @NotNull @NotNull UVSpace space, @NotNull @NotNull ElementVector div, UVAxis.LineConsumer consumer)
      Iterates over the UV space based on the axis.
      Parameters:
      from - the starting vector
      space - the UV space dimensions
      div - the division vector
      consumer - the consumer to accept the iterated values