示例#1
0
 // Token: 0x0600002F RID: 47 RVA: 0x000026F4 File Offset: 0x000008F4
 public static long GetNearestTick(double time)
 {
     return(DiscreteTime.DoubleToDiscreteTime(time));
 }
示例#2
0
        // Token: 0x0600002D RID: 45 RVA: 0x000026AC File Offset: 0x000008AC
        public static double SnapToNearestTick(double time)
        {
            long time2 = DiscreteTime.DoubleToDiscreteTime(time);

            return(DiscreteTime.ToDouble(time2));
        }
示例#3
0
        // Token: 0x0600002E RID: 46 RVA: 0x000026D0 File Offset: 0x000008D0
        public static float SnapToNearestTick(float time)
        {
            long time2 = DiscreteTime.FloatToDiscreteTime(time);

            return(DiscreteTime.ToFloat(time2));
        }
示例#4
0
 // Token: 0x06000019 RID: 25 RVA: 0x000023C4 File Offset: 0x000005C4
 private static float ToFloat(long time)
 {
     return((float)DiscreteTime.ToDouble(time));
 }
示例#5
0
 // Token: 0x0600002C RID: 44 RVA: 0x0000267C File Offset: 0x0000087C
 public static DiscreteTime Max(DiscreteTime lhs, DiscreteTime rhs)
 {
     return(new DiscreteTime(Math.Max(lhs.m_DiscreteTime, rhs.m_DiscreteTime)));
 }
示例#6
0
 // Token: 0x06000013 RID: 19 RVA: 0x0000228C File Offset: 0x0000048C
 public bool Equals(DiscreteTime other)
 {
     return(this.m_DiscreteTime == other.m_DiscreteTime);
 }
示例#7
0
 // Token: 0x06000017 RID: 23 RVA: 0x00002384 File Offset: 0x00000584
 private static long IntToDiscreteTime(int time)
 {
     return(DiscreteTime.DoubleToDiscreteTime((double)time));
 }
示例#8
0
 // Token: 0x0600000D RID: 13 RVA: 0x000021B1 File Offset: 0x000003B1
 public DiscreteTime(int frame, double fps)
 {
     this.m_DiscreteTime = DiscreteTime.DoubleToDiscreteTime((double)frame * fps);
 }
示例#9
0
 // Token: 0x0600000C RID: 12 RVA: 0x000021A2 File Offset: 0x000003A2
 public DiscreteTime(int time)
 {
     this.m_DiscreteTime = DiscreteTime.IntToDiscreteTime(time);
 }
示例#10
0
 // Token: 0x0600000B RID: 11 RVA: 0x00002193 File Offset: 0x00000393
 public DiscreteTime(float time)
 {
     this.m_DiscreteTime = DiscreteTime.FloatToDiscreteTime(time);
 }
示例#11
0
 // Token: 0x0600000A RID: 10 RVA: 0x00002184 File Offset: 0x00000384
 public DiscreteTime(double time)
 {
     this.m_DiscreteTime = DiscreteTime.DoubleToDiscreteTime(time);
 }
示例#12
0
 // Token: 0x06000008 RID: 8 RVA: 0x0000216A File Offset: 0x0000036A
 public DiscreteTime(DiscreteTime time)
 {
     this.m_DiscreteTime = time.m_DiscreteTime;
 }