Enum EAxisPolarity

    • Enum Constant Detail

      • NEGATIVE

        public static final EAxisPolarity NEGATIVE
        The negative polarity or direction, going from positive to negative values.
      • POSITIVE

        public static final EAxisPolarity POSITIVE
        The positive polarity or direction, going from negative to positive values.
    • Method Detail

      • values

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

        public static EAxisPolarity 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
      • inverse

        public EAxisPolarity inverse()
        Returns the opposite polarity of this axis polarity.
        Returns:
        The opposite polarity of this axis polarity.
      • signum

        public int signum()
        The signum of this axis polarity, i.e. +1 for POSITIVE and -1 for NEGATIVE.
        Returns:
        The signum of this axis polarity.