Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/TRotator
Description
Checks whether two rotators are equal within specified tolerance, when treated as an orientation. This means that TRotator(0, 0, 360).Equals(TRotator(0,0,0)) is true, because they represent the same final orientation. It can compare only wound rotators (i.e. multiples of 360 degrees) that end up in a same rotation Rotators that represent the same final rotation, but get there via different intermediate rotations aren't equal i.e. TRotator(0, 45, 0).Equals(TRotator(180, 135, 180)) is false
| Name | Equals |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Math/Rotator.h |
| Include Path | #include "Math/Rotator.h" |
bool Equals
(
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. |