explicit operator DiscreteTime(RationalTime)
Converts a RationalTime to DiscreteTime representation. If the rate denominator is 1 and the DiscreteTime.TicksPerSecond is a multiple of the numerator, this conversion is lossless.
Read time 1 minuteLast updated 12 days ago
Definition
- Type: Operator
- Namespace: Unity.IntegerTime
- Assembly: UnityEngine.CoreModule
explicit operator DiscreteTime(DiscreteTim)
public static explicit operator DiscreteTime(RationalTime t)
Parameters
The RationalTime parameter.
Returns
Type | Description |
|---|---|
| DiscreteTime |