TRotator::IsNearlyZero

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

Remarks

Checks whether rotator is nearly zero within specified tolerance, when treated as an orientation. This means that TRotator(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.