forked from izrik/FbxSharp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFbxTime.cs
More file actions
35 lines (27 loc) · 676 Bytes
/
FbxTime.cs
File metadata and controls
35 lines (27 loc) · 676 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
using System;
namespace FbxSharp
{
public struct FbxTime
{
public static readonly FbxTime Infinite = new FbxTime(0x7fffffffffffffffL);
public static readonly FbxTime Zero = new FbxTime(0);
public const long UnitsPerSecond = 46186158000L;
public FbxTime(long time)
{
Value = time;
}
public long Value;
public long Get()
{
return Value;
}
public double GetSecondDouble()
{
return Value / (double)UnitsPerSecond;
}
public long GetFrameCount()
{
return Value / 1539538600L;
}
}
}