TVector2::Component

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

Remarks

Gets a specific component of the vector.

Returns

Reference to the specified component.

Parameters

Parameter

Description

Index

The index of the component required.