Class MotionProfile.State

  • Enclosing class:
    MotionProfile

    public static class MotionProfile.State
    extends java.lang.Object
    Holds the velocity and position states of a MotionProfile at a time in its span.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      double position  
      double velocity  
    • Constructor Summary

      Constructors 
      Constructor Description
      State​(double position, double velocity)
      Constructs a State out of a given position and velocity.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object other)  
      int hashCode()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • position

        public final double position
      • velocity

        public final double velocity
    • Constructor Detail

      • State

        public State​(double position,
                     double velocity)
        Constructs a State out of a given position and velocity.
        Parameters:
        position - Position of the profile.
        velocity - Velocity of the profile.
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object