Enum Class EdgeAlignment

java.lang.Object
java.lang.Enum<EdgeAlignment>
dev.prozilla.pine.common.math.vector.EdgeAlignment
All Implemented Interfaces:
Serializable, Comparable<EdgeAlignment>, Constable

public enum EdgeAlignment extends Enum<EdgeAlignment>
1-dimensional anchor point relative to the left side of a line with length 1f.
  • Enum Constant Details

  • Field Details

    • factor

      public final float factor
  • Method Details

    • values

      public static EdgeAlignment[] 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 EdgeAlignment 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
    • getValue

      public float getValue(float totalSize)
      Calculates the position based a given size.