Search Results for

    Show / Hide Table of Contents

    Class SnapshotInterpolation

    Inheritance
    Object
    SnapshotInterpolation
    Namespace: Mirror
    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 Description
    Double
    Type Parameters
    Name Description
    T
    | 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
    Type Name Description
    Double time
    Double deltaTime
    Double interpolationTime
    Double bufferTime
    SortedList<Double, T> buffer
    Int32 catchupThreshold
    Single catchupMultiplier
    Func<T, T, Double, T> Interpolate
    T computed
    Returns
    Type Description
    Boolean
    Type Parameters
    Name Description
    T
    | 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
    Name Description
    T
    | 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
    Type Name Description
    SortedList<Double, T> buffer
    Double threshold
    Int32 amount
    Returns
    Type Description
    Boolean
    Type Parameters
    Name Description
    T
    | 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
    Type Name Description
    SortedList<Double, T> buffer
    Double time
    Double bufferTime
    Returns
    Type Description
    Boolean
    Type Parameters
    Name Description
    T
    | 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
    Type Name Description
    SortedList<Double, T> buffer
    Double time
    Double bufferTime
    Returns
    Type Description
    Boolean
    Type Parameters
    Name Description
    T
    | 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
    Name Description
    T
    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX