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

public class VDeadZone extends Object implements VFilter
A filter that will zero out a vector if its magnitude is too small
  • Constructor Details

    • VDeadZone

      public VDeadZone(Number deadzone)
  • Method Details

    • get

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