FromDouble(double, TicksPerSecond)
Converts a floating point number into a RationalTime with an explicit rate.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Method
- Namespace: Unity.IntegerTime
- Assembly: UnityEngine.CoreModule
public static RationalTime FromDouble(double t, RationalTime.TicksPerSecond ticksPerSecond)
Parameters
The duration in seconds.
The rational number representing the number of ticks per second.
Returns
Type | Description |
|---|---|
| RationalTime |