Class TimeSequence
Inheritance
System.Object
TimeSequence
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: BulletStorm.Util
Assembly: BulletStorm.dll
Syntax
public class TimeSequence
Constructors
| Improve this Doc View SourceTimeSequence(List<Single>)
Create a time sequence by marks.
Declaration
public TimeSequence([NotNull] List<float> marks)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.List<System.Single> | marks | Marks on the time sequence. |
Properties
| Improve this Doc View SourceCount
Mark count in this sequence.
Declaration
public int Count { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Length
Total time of this sequence.
Declaration
public float Length { get; }
Property Value
Type | Description |
---|---|
System.Single |
Methods
| Improve this Doc View SourceEqualLength(Int32, Single)
Create a time sequence with equal time interval between every two marks.
Declaration
public static TimeSequence EqualLength(int markCount, float space)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | markCount | Number of marks |
System.Single | space | Time between two marks |
Returns
Type | Description |
---|---|
TimeSequence |
GetMarks(Int32, Single)
Get marks until current time.
Declaration
public List<float> GetMarks(int startIndex, float currentTime)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | startIndex | Start index of marks. |
System.Single | currentTime | Current time of the sequence. |
Returns
Type | Description |
---|---|
System.Collections.Generic.List<System.Single> |
Exceptions
Type | Condition |
---|---|
System.ArgumentOutOfRangeException |