Struct TimeSampler | Kinematica | 0.5.0-preview.1
docs.unity.cn
    Show / Hide Table of Contents

    Struct TimeSampler

    TimeSampler allows to compute regularly spaced time samples inside a time interval

    Namespace: Unity.Kinematica
    Syntax
    public struct TimeSampler

    Fields

    advanceInSeconds

    Time step between samples

    Declaration
    public float advanceInSeconds
    Field Value
    Type Description
    Single

    sampleCount

    Number of samples, should be at least one

    Declaration
    public int sampleCount
    Field Value
    Type Description
    Int32

    startTimeInSeconds

    Time of the first sample

    Declaration
    public float startTimeInSeconds
    Field Value
    Type Description
    Single

    Properties

    Item[Int32]

    Declaration
    public float this[int index] { get; }
    Parameters
    Type Name Description
    Int32 index
    Property Value
    Type Description
    Single

    Methods

    CreateFromRange(Single, Single, Int32)

    Declaration
    public static TimeSampler CreateFromRange(float startTimeInSeconds, float endTimeInSeconds, int sampleCount)
    Parameters
    Type Name Description
    Single startTimeInSeconds
    Single endTimeInSeconds
    Int32 sampleCount
    Returns
    Type Description
    TimeSampler
    Back to top Copyright © 2020 Unity Technologies
    Generated by DocFX