You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
18 lines
444 B
C++
18 lines
444 B
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#include "ITimedDataInput.h"
|
|
|
|
FFrameRate ITimedDataInput::UnknownFrameRate = FFrameRate(-1, -1);
|
|
|
|
|
|
double ITimedDataInput::ConvertSecondOffsetInFrameOffset(double Seconds, FFrameRate Rate)
|
|
{
|
|
return Rate.AsFrameTime(Seconds).AsDecimal();
|
|
}
|
|
|
|
|
|
double ITimedDataInput::ConvertFrameOffsetInSecondOffset(double Frames, FFrameRate Rate)
|
|
{
|
|
return Rate.AsSeconds(FFrameTime::FromDecimal(Frames));
|
|
}
|