![]() |
Ark Server API (ASA) - Wiki
|
#include <TwoVectors.h>
Collaboration diagram for FTwoVectors:Public Attributes | |
| FVector | v1 |
| FVector | v2 |
Friends | |
| FArchive & | operator<< (FArchive &Ar, FTwoVectors &TwoVectors) |
A pair of 3D vectors.
Definition at line 14 of file TwoVectors.h.
| FORCEINLINE FTwoVectors::FTwoVectors | ( | ) |
Default constructor.
Definition at line 243 of file TwoVectors.h.
| FORCEINLINE FTwoVectors::FTwoVectors | ( | FVector | In1, |
| FVector | In2 ) |
Creates and initializes a new instance with the specified vectors.
| In1 | The first Vector. |
| In2 | The second Vector. |
Definition at line 249 of file TwoVectors.h.
|
explicit |
| FORCEINLINE bool FTwoVectors::Equals | ( | const FTwoVectors & | V, |
| float | Tolerance = UE_KINDA_SMALL_NUMBER ) const |
Error-tolerant comparison.
| V | The other pair. |
| Tolerance | Error Tolerance. |
Definition at line 329 of file TwoVectors.h.
| FORCEINLINE FVector::FReal FTwoVectors::GetMax | ( | ) | const |
Get the maximum value of all the vector coordinates.
Definition at line 399 of file TwoVectors.h.
| FORCEINLINE FVector::FReal FTwoVectors::GetMin | ( | ) | const |
Get the minimum value of all the vector coordinates.
Definition at line 408 of file TwoVectors.h.
| FORCEINLINE bool FTwoVectors::operator!= | ( | const FTwoVectors & | V | ) | const |
Checks two pairs for inequality.
| V | The other pair. |
Definition at line 323 of file TwoVectors.h.
| FORCEINLINE FTwoVectors FTwoVectors::operator* | ( | const FTwoVectors & | V | ) | const |
Gets result of multiplying two pairs of vectors.
| V | The pair to multiply with. |
Definition at line 299 of file TwoVectors.h.
| FORCEINLINE FTwoVectors FTwoVectors::operator* | ( | float | Scale | ) | const |
Gets result of scaling pair of vectors.
| Scale | The scaling factor. |
Definition at line 279 of file TwoVectors.h.
| FORCEINLINE FTwoVectors FTwoVectors::operator*= | ( | const FTwoVectors & | V | ) |
Multiply the pair by another.
| The | other pair. |
Definition at line 382 of file TwoVectors.h.
| FORCEINLINE FTwoVectors FTwoVectors::operator*= | ( | float | Scale | ) |
Scale the pair.
| Scale | What to scale by. |
Definition at line 362 of file TwoVectors.h.
| FORCEINLINE FTwoVectors FTwoVectors::operator+ | ( | const FTwoVectors & | V | ) | const |
Gets result of addition of two pairs of vectors.
| V | The pair to add. |
Definition at line 261 of file TwoVectors.h.
| FORCEINLINE FTwoVectors FTwoVectors::operator+= | ( | const FTwoVectors & | V | ) |
Add a pair to this.
| The | pair to add. |
Definition at line 344 of file TwoVectors.h.
| FORCEINLINE FTwoVectors FTwoVectors::operator- | ( | ) | const |
Get a negated copy of the pair.
Definition at line 335 of file TwoVectors.h.
| FORCEINLINE FTwoVectors FTwoVectors::operator- | ( | const FTwoVectors & | V | ) | const |
Gets result of subtraction of two pairs of vectors.
| V | The pair to subtract. |
Definition at line 270 of file TwoVectors.h.
| FORCEINLINE FTwoVectors FTwoVectors::operator-= | ( | const FTwoVectors & | V | ) |
Subtract a pair from this.
| The | pair to subtract. |
Definition at line 353 of file TwoVectors.h.
| FORCEINLINE FTwoVectors FTwoVectors::operator/ | ( | const FTwoVectors & | V | ) | const |
Gets result of division of two pairs of vectors.
| V | The pair to divide by. |
Definition at line 308 of file TwoVectors.h.
| FORCEINLINE FTwoVectors FTwoVectors::operator/ | ( | float | Scale | ) | const |
Gets result of dividing pair of vectors.
| Scale | What to divide by. |
Definition at line 288 of file TwoVectors.h.
| FORCEINLINE FTwoVectors FTwoVectors::operator/= | ( | const FTwoVectors & | V | ) |
Divide the pair by another.
| The | other pair. |
Definition at line 390 of file TwoVectors.h.
| FORCEINLINE FTwoVectors FTwoVectors::operator/= | ( | float | V | ) |
Divide the pair.
| What | to divide by. |
Definition at line 371 of file TwoVectors.h.
| FORCEINLINE bool FTwoVectors::operator== | ( | const FTwoVectors & | V | ) | const |
Checks two pairs for equality.
| V | The other pair. |
Definition at line 317 of file TwoVectors.h.
| FORCEINLINE FVector::FReal & FTwoVectors::operator[] | ( | int32 | i | ) |
Get a specific component from the pair.
| i | The index of the component, even indices are for the first vector, odd ones are for the second. Returns index 5 if out of range. |
Definition at line 417 of file TwoVectors.h.
Definition at line 226 of file TwoVectors.h.
| FORCEINLINE FString FTwoVectors::ToString | ( | ) | const |
Get a textual representation of this two-vector.
Definition at line 434 of file TwoVectors.h.
|
friend |
Serializes the two-vector.
| Ar | The archive to serialize into. |
| TwoVectors | The two-vector to serialize. |
Definition at line 221 of file TwoVectors.h.
| FVector FTwoVectors::v1 |
Holds the first vector.
Definition at line 19 of file TwoVectors.h.
| FVector FTwoVectors::v2 |
Holds the second vector.
Definition at line 22 of file TwoVectors.h.