Navigation
API > API/Developer > API/Developer/FunctionalTesting > API/Developer/FunctionalTesting/AFunctionalTest
Description
Assert that the orientation of two rotators is the same within a small tolerance. Robust to quaternion singularities where angles can differ despite having an identical orientation.
| Name | AssertEqual_RotatorOrientation |
| Type | function |
| Header File | /Engine/Source/Developer/FunctionalTesting/Classes/FunctionalTest.h |
| Include Path | #include "FunctionalTest.h" |
| Source | /Engine/Source/Developer/FunctionalTesting/Private/FunctionalTest.cpp |
UFUNCTION (BlueprintCallable, Category="Asserts", DisplayName="Assert Equal (Rotator Orientation)",
Meta=(HidePin="ContextObject", DefaultToSelf="ContextObject"))
virtual bool AssertEqual_RotatorOrientation
(
FRotator Actual,
FRotator Expected,
const FString & What,
float Tolerance,
const UObject * ContextObject
)
Parameters
| Name | Remarks |
|---|---|
| What | A name to use in the message if the assert fails ("Expected 'What' to be {Expected} but it was {Actual} for context ''") |