Class SnapshotInterpolation
Inheritance
SnapshotInterpolation
Assembly: doc.dll
Syntax
public static class SnapshotInterpolation : object
Methods
|
Improve this Doc
View Source
CalculateCatchup<T>(SortedList<Double, T>, Int32, Double)
Declaration
public static double CalculateCatchup<T>(SortedList<double, T> buffer, int catchupThreshold, double catchupMultiplier)
where T : Snapshot
Parameters
Type |
Name |
Description |
SortedList<Double, T> |
buffer |
|
Int32 |
catchupThreshold |
|
Double |
catchupMultiplier |
|
Returns
Type Parameters
|
Improve this Doc
View Source
Compute<T>(Double, Double, ref Double, Double, SortedList<Double, T>, Int32, Single, Func<T, T, Double, T>, out T)
Declaration
public static bool Compute<T>(double time, double deltaTime, ref double interpolationTime, double bufferTime, SortedList<double, T> buffer, int catchupThreshold, float catchupMultiplier, Func<T, T, double, T> Interpolate, out T computed)
where T : Snapshot
Parameters
Returns
Type Parameters
|
Improve this Doc
View Source
GetFirstSecondAndDelta<T>(SortedList<Double, T>, out T, out T, out Double)
Declaration
public static void GetFirstSecondAndDelta<T>(SortedList<double, T> buffer, out T first, out T second, out double delta)
where T : Snapshot
Parameters
Type |
Name |
Description |
SortedList<Double, T> |
buffer |
|
T |
first |
|
T |
second |
|
Double |
delta |
|
Type Parameters
|
Improve this Doc
View Source
HasAmountOlderThan<T>(SortedList<Double, T>, Double, Int32)
Declaration
public static bool HasAmountOlderThan<T>(SortedList<double, T> buffer, double threshold, int amount)
where T : Snapshot
Parameters
Returns
Type Parameters
|
Improve this Doc
View Source
HasEnough<T>(SortedList<Double, T>, Double, Double)
Declaration
public static bool HasEnough<T>(SortedList<double, T> buffer, double time, double bufferTime)
where T : Snapshot
Parameters
Returns
Type Parameters
|
Improve this Doc
View Source
HasEnoughWithoutFirst<T>(SortedList<Double, T>, Double, Double)
Declaration
public static bool HasEnoughWithoutFirst<T>(SortedList<double, T> buffer, double time, double bufferTime)
where T : Snapshot
Parameters
Returns
Type Parameters
|
Improve this Doc
View Source
InsertIfNewEnough<T>(T, SortedList<Double, T>)
Declaration
public static void InsertIfNewEnough<T>(T snapshot, SortedList<double, T> buffer)
where T : Snapshot
Parameters
Type |
Name |
Description |
T |
snapshot |
|
SortedList<Double, T> |
buffer |
|
Type Parameters