Package arc.math

Class Extrapolator

java.lang.Object
arc.math.Extrapolator

public class Extrapolator extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
    Extrapolator(int size)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    addSample(double packetTime, double curTime, float pos)
    Version for extrapolator of size = 1.
    boolean
    addSample(double packetTime, double curTime, float[] pos)
     
    boolean
    addSample(double packetTime, double curTime, float[] pos, float[] vel)
     
    boolean
    addSample(double packetTime, double curTime, float pos, float vel)
    Version for extrapolator of size = 1.
    double
     
    double
     
    float
    readPosition(double forTime)
    Version for extrapolator of size = 1.
    boolean
    readPosition(double forTime, float[] outPos)
     
    boolean
    readPosition(double forTime, float[] outPos, float[] outVel)
     
    void
    reset(double packetTime, double curTime, float pos)
    Version for extrapolator of size = 1.
    void
    reset(double packetTime, double curTime, float[] pos)
     
    void
    reset(double packetTime, double curTime, float[] pos, float[] vel)
     
    void
    reset(double packetTime, double curTime, float pos, float vel)
    Version for extrapolator of size = 1.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Extrapolator

      public Extrapolator(int size)
  • Method Details

    • addSample

      public boolean addSample(double packetTime, double curTime, float[] pos)
    • addSample

      public boolean addSample(double packetTime, double curTime, float[] pos, float[] vel)
    • addSample

      public boolean addSample(double packetTime, double curTime, float pos)
      Version for extrapolator of size = 1.
    • addSample

      public boolean addSample(double packetTime, double curTime, float pos, float vel)
      Version for extrapolator of size = 1.
    • reset

      public void reset(double packetTime, double curTime, float[] pos)
    • reset

      public void reset(double packetTime, double curTime, float[] pos, float[] vel)
    • reset

      public void reset(double packetTime, double curTime, float pos)
      Version for extrapolator of size = 1.
    • reset

      public void reset(double packetTime, double curTime, float pos, float vel)
      Version for extrapolator of size = 1.
    • readPosition

      public boolean readPosition(double forTime, float[] outPos)
    • readPosition

      public boolean readPosition(double forTime, float[] outPos, float[] outVel)
    • readPosition

      public float readPosition(double forTime)
      Version for extrapolator of size = 1.
    • estimateLatency

      public double estimateLatency()
    • estimateUpdateTime

      public double estimateUpdateTime()