8#include "MovieSceneTimeTransform.generated.h"
44 checkf(!
FMath::IsNearlyZero(TimeScale),
TEXT(
"It is invalid to create a linear transformation with a zero timescale. This case should be handled externally by FMovieSceneTimeWarpVariant and FLAG_Zero."))
49 return A.TimeScale ==
B.TimeScale &&
A.Offset ==
B.Offset;
54 return A.TimeScale !=
B.TimeScale ||
A.Offset !=
B.Offset;
92 if (RHS.TimeScale == 1.f)
94 return InTime + RHS.Offset;
96 else if (!FMath::IsFinite(RHS.TimeScale))
102 return InTime * RHS.TimeScale + RHS.Offset;
128 if (!Result.GetLowerBound().IsOpen())
130 Result.SetLowerBoundValue(Result.GetLowerBoundValue() * RHS);
132 if (!Result.GetUpperBound().IsOpen())
134 Result.SetUpperBoundValue(Result.GetUpperBoundValue() * RHS);
144 if (!Result.GetLowerBound().IsOpen())
146 Result.SetLowerBoundValue((Result.GetLowerBoundValue() * RHS).FloorToFrame());
148 if (!Result.GetUpperBound().IsOpen())
150 Result.SetUpperBoundValue((Result.GetUpperBoundValue() * RHS).FloorToFrame());
194 return *FString::Printf(
TEXT(
"[ %+i ]"),
InTransform.Offset.FrameNumber.Value);
198 return *FString::Printf(
TEXT(
"[ %+i+%.3f ]"),
206 return *FString::Printf(
TEXT(
"[ %+i x%.3f ]"),
211 return *FString::Printf(
TEXT(
"[ %+i+%.3f x%.3f ]"),
#define checkf(expr, format,...)
Definition AssertionMacros.h:315
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
#define UPROPERTY(...)
UObject definition macros.
Definition ObjectMacros.h:744
#define GENERATED_BODY(...)
Definition ObjectMacros.h:765
#define USTRUCT(...)
Definition ObjectMacros.h:746
USkinnedMeshComponent float
Definition SkinnedMeshComponent.h:60
uint32 Offset
Definition VulkanMemory.cpp:4033
Definition FrameTime.h:16
static UE_FORCEINLINE_HINT bool IsNearlyEqual(float A, float B, float ErrorTolerance=UE_SMALL_NUMBER)
Definition UnrealMathUtility.h:388
static UE_FORCEINLINE_HINT bool IsNearlyZero(float Value, float ErrorTolerance=UE_SMALL_NUMBER)
Definition UnrealMathUtility.h:407