FRotator::Equals

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

Windows
MacOS
Linux

References

Module

Core

Header

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

Include

#include "Math/Rotator.h"

Syntax

bool Equals
(
    const FRotator & R,
    float Tolerance
) const

Remarks

Checks whether two rotators are equal within specified tolerance, when treated as an orientation. This means that FRotator(0, 0, 360).Equals(FRotator(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.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss