FVector::Component

Gets a 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 Component
(
    int32 Index
) const

Remarks

Gets a specific component of the vector.

Returns

Copy of the specified component.

Parameters

Parameter

Description

Index

The index of the component required.

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