FVector::operator[]

Gets specific component of the vector.

Windows
MacOS
Linux

References

Module

Core

Header

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

Include

#include "Math/Vector.h"

Syntax

float & operator[]
(
    int32 Index
)

Remarks

Gets specific component of the vector.

Returns

reference to component.

Parameters

Parameter

Description

Index

the index of vector component

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