TRotator::SetClosestToMe

Modify if necessary the passed in rotator to be the closest rotator to it based upon it's equivalent.

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

void SetClosestToMe
(
    TRotator & MakeClosest
) const

Remarks

Modify if necessary the passed in rotator to be the closest rotator to it based upon it's equivalent. This Rotator should be within (-180, 180], usually just constructed from a Matrix or a Quaternion.

Parameters

Parameter

Description

MakeClosest[In/Out]

the Rotator we want to make closest to us. Should be between (-180, 180]. This Rotator may change if we need to use different degree values to make it closer.