public DiscreteTime(int frame, double fps) { this.m_DiscreteTime = DiscreteTime.DoubleToDiscreteTime((double)frame * fps); }
public DiscreteTime(double time) { this.m_DiscreteTime = DiscreteTime.DoubleToDiscreteTime(time); }
public static double SnapToNearestTick(double time) { long time2 = DiscreteTime.DoubleToDiscreteTime(time); return(DiscreteTime.ToDouble(time2)); }
public static long GetNearestTick(double time) { return(DiscreteTime.DoubleToDiscreteTime(time)); }
private static long IntToDiscreteTime(int time) { return(DiscreteTime.DoubleToDiscreteTime((double)time)); }