# FTwoVectors

## A pair of 3D vectors.

References

 Module Core Header /Engine/Source/Runtime/Core/Public/Math/TwoVectors.h Include #include "Math/TwoVectors.h"

Syntax

struct FTwoVectors

Remarks

A pair of 3D vectors.

Variables

Name Description

FVector

v1

Holds the first vector.

FVector

v2

Holds the second vector.

Constructors

Name Description

FTwoVectors()

Default constructor.

FTwoVectors

Constructor.

FTwoVectors

(
FVector In1,
FVector In2
)

Creates and initializes a new instance with the specified vectors.

Functions

Name Description

bool

Equals

(
const FTwoVectors& V,
float Tolerance
)

Error-tolerant comparison.

float

GetMax()

Get the maximum value of all the vector coordinates.

float

GetMin()

Get the minimum value of all the vector coordinates.

bool

Serialize

(
FArchive& Ar
)

FString

ToString()

Get a textual representation of this two-vector.

Operators

Name Description

FTwoVectors

operator-

(
const FTwoVectors& V
)

Gets result of subtraction of two pairs of vectors.

FTwoVectors

operator-()

Get a negated copy of the pair.

bool

operator!=

(
const FTwoVectors& V
)

Checks two pairs for inequality.

FTwoVectors

operator*

(
const FTwoVectors& V
)

Gets result of multiplying two pairs of vectors.

FTwoVectors

operator*

(
float Scale
)

Gets result of scaling pair of vectors.

FTwoVectors

operator*=

(
const FTwoVectors& V
)

Multiply the pair by another.

FTwoVectors

operator*=

(
float Scale
)

Scale the pair.

FTwoVectors

operator/

(
const FTwoVectors& V
)

Gets result of division of two pairs of vectors.

FTwoVectors

operator/

(
float Scale
)

Gets result of dividing pair of vectors.

FTwoVectors

operator/=

(
const FTwoVectors& V
)

Divide the pair by another.

FTwoVectors

operator/=

(
float V
)

Divide the pair.

float &

operator[]

(
int32 i
)

Get a specific component from the pair.

FTwoVectors

operator+

(
const FTwoVectors& V
)

Gets result of addition of two pairs of vectors.

FTwoVectors

operator+=

(
const FTwoVectors& V
)

FTwoVectors

operator-=

(
const FTwoVectors& V
)

Subtract a pair from this.

bool

operator==

(
const FTwoVectors& V
)

Checks two pairs for equality.

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