RationalTime.FromDouble

Declaration

public static Unity.IntegerTime.RationalTime FromDouble(double t, Unity.IntegerTime.RationalTime.TicksPerSecond ticksPerSecond);

Parameters

t The duration in seconds.
ticksPerSecond The rational number representing the number of ticks per second.

Description

Converts a floating point number into a RationalTime with an explicit rate.


Did you find this page useful? Please give it a rating: