Navigation
API > API/Runtime > API/Runtime/Core
A pair of 3D vectors.
| Name | FTwoVectors |
| Type | struct |
| Header File | /Engine/Source/Runtime/Core/Public/Math/TwoVectors.h |
| Include Path | #include "Math/TwoVectors.h" |
Syntax
struct FTwoVectors
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FTwoVectors
(
FVector In1, |
Creates and initializes a new instance with the specified vectors. | Math/TwoVectors.h | |
FTwoVectors () |
Default constructor. | Math/TwoVectors.h | |
| Constructor. | Math/TwoVectors.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| v1 | FVector | Holds the first vector. | Math/TwoVectors.h | |
| v2 | FVector | Holds the second vector. | Math/TwoVectors.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool Equals
(
const FTwoVectors& V, |
Error-tolerant comparison. | Math/TwoVectors.h | |
FVector::FReal GetMax() |
Get the maximum value of all the vector coordinates. | Math/TwoVectors.h | |
FVector::FReal GetMin() |
Get the minimum value of all the vector coordinates. | Math/TwoVectors.h | |
bool Serialize
(
FArchive& Ar |
Math/TwoVectors.h | ||
FString ToString() |
Get a textual representation of this two-vector. | Math/TwoVectors.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FTwoVectors operator-
(
const FTwoVectors& V |
Gets result of subtraction of two pairs of vectors. | Math/TwoVectors.h | |
FTwoVectors operator-() |
Get a negated copy of the pair. | Math/TwoVectors.h | |
bool operator!=
(
const FTwoVectors& V |
Checks two pairs for inequality. | Math/TwoVectors.h | |
FTwoVectors operator*
(
const FTwoVectors& V |
Gets result of multiplying two pairs of vectors. | Math/TwoVectors.h | |
FTwoVectors operator*
(
float Scale |
Gets result of scaling pair of vectors. | Math/TwoVectors.h | |
FTwoVectors operator*=
(
const FTwoVectors& V |
Multiply the pair by another. | Math/TwoVectors.h | |
FTwoVectors operator*=
(
float Scale |
Scale the pair. | Math/TwoVectors.h | |
FTwoVectors operator/
(
const FTwoVectors& V |
Gets result of division of two pairs of vectors. | Math/TwoVectors.h | |
FTwoVectors operator/
(
float Scale |
Gets result of dividing pair of vectors. | Math/TwoVectors.h | |
FTwoVectors operator/=
(
const FTwoVectors& V |
Divide the pair by another. | Math/TwoVectors.h | |
FTwoVectors operator/=
(
float V |
Divide the pair. | Math/TwoVectors.h | |
FVector::FReal & operator[]
(
int32 i |
Get a specific component from the pair. | Math/TwoVectors.h | |
FTwoVectors operator+
(
const FTwoVectors& V |
Gets result of addition of two pairs of vectors. | Math/TwoVectors.h | |
FTwoVectors operator+=
(
const FTwoVectors& V |
Add a pair to this. | Math/TwoVectors.h | |
FTwoVectors operator-=
(
const FTwoVectors& V |
Subtract a pair from this. | Math/TwoVectors.h | |
bool operator==
(
const FTwoVectors& V |
Checks two pairs for equality. | Math/TwoVectors.h |