Modifier

Partager via


InputAnimation.FindMarkerInterval(Single) Method

Definition

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.

Applies to