Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/TRotator
Description
Checks whether two rotators have the same orientation within the specified tolerance, without requiring similar angles or wound multiples of 360. Unlike Equals(), it can compare Rotators that represent the same final orientation, but get there via different intermediate rotations. i.e. If we compare two rotators with different angles, but same orientation like so: A = TRotator(0, 45, 0) B = TRotator(180, 135, 180) Then A.EqualsOrientation(B) would be TRUE while A.Equals(B) would be FALSE
| Name | EqualsOrientation |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Math/Rotator.h |
| Include Path | #include "Math/Rotator.h" |
bool EqualsOrientation
(
const TRotator < T > & R,
T Tolerance
) const
true if two rotators are equal, within specified tolerance, otherwise false.
Parameters
| Name | Remarks |
|---|---|
| R | The other rotator. |
| Tolerance | Error Tolerance. |