RationalTime
Data type that represents time as an integer count of a rational number.
読み終わるまでの所要時間 1 分最終更新 2時間前
Definition
- Type: Struct
- Namespace: Unity.IntegerTime
- Assembly: UnityEngine.CoreModule
public struct RationalTime
Properties
Static Methods
Method | Description |
|---|---|
| FromDouble | Converts a floating point number into a RationalTime with an explicit rate. |
Operators
Operator | Description |
|---|---|
| DiscreteTime | 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. |
Structs
Struct | Description |
|---|---|
| RationalTime.TicksPerSecond | The number of ticks per second ( rate ) of the discrete time, expressed as a rational number. |