UnitVector

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

Windows
MacOS
Linux

References

Module

Core

Header

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

Include

#include "Math/Vector2D.h"

Syntax

static const FVector2D 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.

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