Documentation

Unity Engine

Download Unity

Unity Engine

DiscreteTimeInterval

Structure representing a time interval.
Read time 1 minuteLast updated 3 hours ago

Definition

public struct DiscreteTimeInterval : IEquatable<DiscreteTimeInterval>, IFormattable

Fields

Value

Description

EndThe ending time of the interval
StartThe starting time of the interval

Static Fields

Value

Description

MaxRangeThe largest time interval that a DiscreteTime can represent.
UnitRangeUnit time interval [0, 1]

Constructors

Constructor

Description

DiscreteTimeInterval(Unity.IntegerTime.DiscreteTime,Unity.IntegerTime.DiscreteTime)Creates an interval between two times.

Properties

Property

Description

DurationThe duration of the interval
DurationAsTickThe duration of the interval, in ticks, as a
ulong
.

Methods

Method

Description

ClampLimits a time value to the interval.
ContainsChecks whether a time value is inside the interval.
EqualsDetermines whether this interval equals another object.
GetHashCodeComputes a hash code for the interval.
OverlapsChecks whether another interval overlaps this interval.
ToStringConverts the interval to a string.
UnionReturns the smallest interval containing both this interval and another one.