UnitVector

Global 2D one vector (poorly named) constant (1,1).

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

static const TVector2< T > UnitVector;

Remarks

Global 2D one vector (poorly named) constant (1,1).

@note Incorrectly named "unit" vector though its magnitude/length/size is not one. Would fix, though likely used all over the world. Use `Unit45Deg_ below for an actual unit vector.