Renamed "Camera Tilt" to "Camera Roll" (new naming convention!)
Changed Camera Roll to use Degree Values Started adding Timeline Position Editing to GuiEditKeyframe
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
package eu.crushedpixel.replaymod.utils;
|
||||
|
||||
public class TimestampUtils {
|
||||
|
||||
public static int getMinutesFromTimestamp(long timestamp) {
|
||||
return (int)((timestamp / (1000*60)) % 60);
|
||||
}
|
||||
|
||||
public static int getSecondsFromTimestamp(long timestamp) {
|
||||
return (int)(timestamp / 1000) % 60;
|
||||
}
|
||||
|
||||
public static int getMillisecondsFromTimestamp(long timestamp) {
|
||||
return(int)(timestamp % 1000);
|
||||
}
|
||||
|
||||
public static int calculateTimestamp(int min, int sec, int ms) {
|
||||
return (min * 60 * 1000) + (sec * 1000) + ms;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user