FRotator::SetClosestToMe

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

Windows
MacOS
Linux

References

Module

Core

Header

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

Include

#include "Math/Rotator.h"

Syntax

void SetClosestToMe
(
    FRotator & 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.

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