Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/Math
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
| Type | Name | Description | |
|---|---|---|---|
| FVector | v1 | Holds the first vector. | |
| FVector | v2 | Holds the second vector. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FTwoVectors () |
Default constructor. | ||
FTwoVectors
(
EForceInit |
Constructor. | ||
FTwoVectors
(
FVector In1, |
Creates and initializes a new instance with the specified vectors. |
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | Equals
(
const FTwoVectors& V, |
Error-tolerant comparison. | |
| FVector::FReal | GetMax () |
Get the maximum value of all the vector coordinates. | |
| FVector::FReal | GetMin () |
Get the minimum value of all the vector coordinates. | |
| bool | |||
| FString | ToString () |
Get a textual representation of this two-vector. |
Operators
| Type | 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. | |
| FVector::FReal & | 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 |
Add a pair to this. | |
| FTwoVectors | operator-=
(
const FTwoVectors& V |
Subtract a pair from this. | |
| bool | operator==
(
const FTwoVectors& V |
Checks two pairs for equality. |