InputAnimation.FindMarkerInterval(Single) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Find an index i in the sorted events list, such that events[i].time <= time < events[i+1].time.
public:
int FindMarkerInterval(float time);
public int FindMarkerInterval (float time);
member this.FindMarkerInterval : single -> int
Public Function FindMarkerInterval (time As Single) As Integer
Parameters
- time
- Single
Returns
0 <= i < eventCount if a full interval could be found. -1 if time is less than the first event time. eventCount-1 if time is greater than the last event time.
Remarks
Uses binary search.