TVector2::RoundToVector

Get this vector as a vector where each component has been rounded to the nearest int.

Choose your operating system:

Windows

macOS

Linux

References

Module

Core

Header

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

Include

#include "Math/Vector2D.h"

Syntax

TVector2< T > RoundToVector() const

Remarks

Get this vector as a vector where each component has been rounded to the nearest int.

Returns

New TVector2 from this vector that is rounded.