java.lang.Object
com.stuypulse.stuylib.streams.vectors.filters.VRateLimit
All Implemented Interfaces:
VFilter

public class VRateLimit extends Object implements VFilter
A filter that limits the amount that a Vector2D can change by per second.
  • Constructor Details

    • VRateLimit

      public VRateLimit(Number rateLimit)
  • Method Details

    • get

      public Vector2D get(Vector2D next)
      Description copied from interface: VFilter
      Get next value in Filter based on the next value given
      Specified by:
      get in interface VFilter
      Parameters:
      next - next input value in the stream
      Returns:
      the output value of the filter