Class N2

java.lang.Object
edu.wpi.first.wpiutil.math.Num
edu.wpi.first.wpiutil.math.numbers.N2
All Implemented Interfaces:
Nat<N2>

public final class N2
extends Num
implements Nat<N2>
A class representing the number 2.
  • Field Details

    • instance

      public static final N2 instance
      The singleton instance of this class.
  • Method Details

    • getNum

      public int getNum()
      The integer this class represents.
      Specified by:
      getNum in interface Nat<N2>
      Specified by:
      getNum in class Num
      Returns:
      The literal number 2.