TRotator::Equals

Checks whether two rotators are equal within specified tolerance, when treated as an orientation.

Choose your operating system:

Windows

macOS

Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Math/Rotator.h

Include

#include "Math/Rotator.h"

Syntax

bool Equals
(
    const TRotator< T > & R,
    T Tolerance
) const

Remarks

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.

Returns

true if two rotators are equal, within specified tolerance, otherwise false.

Parameters

Parameter

Description

R

The other rotator.

Tolerance

Error Tolerance.