DiscreteTimeInterval
Structure representing a time interval.
Read time 1 minuteLast updated 3 hours ago
Definition
- Type: Struct
- Namespace: Unity.Animations
- Assembly: UnityEngine.AnimationCoreModule
- Implements: IEquatable<DiscreteTimeInterval>, IFormattable
public struct DiscreteTimeInterval : IEquatable<DiscreteTimeInterval>, IFormattable
Fields
Static Fields
Value | Description |
|---|---|
| MaxRange | The largest time interval that a DiscreteTime can represent. |
| UnitRange | Unit time interval [0, 1] |
Constructors
Constructor | Description |
|---|---|
| DiscreteTimeInterval(Unity.IntegerTime.DiscreteTime,Unity.IntegerTime.DiscreteTime) | Creates an interval between two times. |
Properties
Property | Description |
|---|---|
| Duration | The duration of the interval |
| DurationAsTick | The duration of the interval, in ticks, as a |
Methods
Method | Description |
|---|---|
| Clamp | Limits a time value to the interval. |
| Contains | Checks whether a time value is inside the interval. |
| Equals | Determines whether this interval equals another object. |
| GetHashCode | Computes a hash code for the interval. |
| Overlaps | Checks whether another interval overlaps this interval. |
| ToString | Converts the interval to a string. |
| Union | Returns the smallest interval containing both this interval and another one. |