Struct TimeSampler
TimeSampler allows to compute regularly spaced time samples inside a time interval
Syntax
public struct TimeSampler
Fields
advanceInSeconds
Time step between samples
Declaration
public float advanceInSeconds
Field Value
sampleCount
Number of samples, should be at least one
Declaration
Field Value
startTimeInSeconds
Declaration
public float startTimeInSeconds
Field Value
Properties
Item[Int32]
Declaration
public float this[int index] { get; }
Parameters
Type |
Name |
Description |
Int32 |
index |
|
Property Value
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