FVector4::operator[]

Access a specific component of the vector.

Windows
MacOS
Linux

References

Module

Core

Header

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

Include

#include "Math/Vector4.h"

Syntax

float operator[]
(
    int32 ComponentIndex
) const

Remarks

Access a specific component of the vector.

Returns

Copy of the desired component.

Parameters

Parameter

Description

ComponentIndex

The index of the 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