TVector2::operator[]

Gets specific component of the vector.

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

T & operator[]
(
    int32 Index
)

Remarks

Gets specific component of the vector.

Returns

reference to component.

Parameters

Parameter

Description

Index

the index of vector component