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.
阅读时间1 分钟最后更新于 1 个月前
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 |