FRotator::IsNearlyZero

Checks whether rotator is nearly zero 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 IsNearlyZero
(
    float Tolerance
) const

Remarks

Checks whether rotator is nearly zero within specified tolerance, when treated as an orientation. This means that FRotator(0, 0, 360) is "zero", because it is the same final orientation as the zero rotator.

Returns

true if rotator is nearly zero, within specified tolerance, otherwise false.

Parameters

Parameter

Description

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