A pair of 3D vectors. 更多...
#include <TwoVectors.h>
Public 成员函数 | |
| bool | Equals (const FTwoVectors &V, float Tolerance=KINDA_SMALL_NUMBER) const |
| Error-tolerant comparison. 更多... | |
| FORCEINLINE | FTwoVectors () |
| Default constructor. | |
| FORCEINLINE | FTwoVectors (EForceInit) |
| Constructor. 更多... | |
| FORCEINLINE | FTwoVectors (FVector In1, FVector In2) |
| Creates and initializes a new instance with the specified vectors. 更多... | |
| float | GetMax () const |
| Get the maximum value of all the vector coordinates. 更多... | |
| float | GetMin () const |
| Get the minimum value of all the vector coordinates. 更多... | |
| bool | operator!= (const FTwoVectors &V) const |
| Checks two pairs for inequality. 更多... | |
| FORCEINLINE FTwoVectors | operator* (const FTwoVectors &V) const |
| Gets result of multiplying two pairs of vectors. 更多... | |
| FORCEINLINE FTwoVectors | operator* (float Scale) const |
| Gets result of scaling pair of vectors. 更多... | |
| FTwoVectors | operator*= (const FTwoVectors &V) |
| Multiply the pair by another. 更多... | |
| FORCEINLINE FTwoVectors | operator*= (float Scale) |
| Scale the pair. 更多... | |
| FORCEINLINE FTwoVectors | operator+ (const FTwoVectors &V) const |
| Gets result of addition of two pairs of vectors. 更多... | |
| FORCEINLINE FTwoVectors | operator+= (const FTwoVectors &V) |
| Add a pair to this. 更多... | |
| FORCEINLINE FTwoVectors | operator- () const |
| Get a negated copy of the pair. 更多... | |
| FORCEINLINE FTwoVectors | operator- (const FTwoVectors &V) const |
| Gets result of subtraction of two pairs of vectors. 更多... | |
| FORCEINLINE FTwoVectors | operator-= (const FTwoVectors &V) |
| Subtract a pair from this. 更多... | |
| FORCEINLINE FTwoVectors | operator/ (const FTwoVectors &V) const |
| Gets result of division of two pairs of vectors. 更多... | |
| FTwoVectors | operator/ (float Scale) const |
| Gets result of dividing pair of vectors. 更多... | |
| FTwoVectors | operator/= (const FTwoVectors &V) |
| Divide the pair by another. 更多... | |
| FTwoVectors | operator/= (float V) |
| Divide the pair. 更多... | |
| bool | operator== (const FTwoVectors &V) const |
| Checks two pairs for equality. 更多... | |
| float & | operator[] (int32 i) |
| Get a specific component from the pair. 更多... | |
| FString | ToString () const |
| Get a textual representation of this two-vector. 更多... | |
Public 属性 | |
| FVector | v1 |
| Holds the first vector. | |
| FVector | v2 |
| Holds the second vector. | |
友元 | |
| FArchive & | operator<< (FArchive &Ar, FTwoVectors &TwoVectors) |
| Serializes the two-vector. 更多... | |
A pair of 3D vectors.
Creates and initializes a new instance with the specified vectors.
| In1 | The first Vector. |
| In2 | The second Vector. |
|
explicit |
Constructor.
| EForceInit | Force Init Enum |
| FORCEINLINE bool FTwoVectors::Equals | ( | const FTwoVectors & | V, |
| float | Tolerance = KINDA_SMALL_NUMBER |
||
| ) | const |
Error-tolerant comparison.
| V | The other pair. |
| Tolerance | Error Tolerance. |
| FORCEINLINE float FTwoVectors::GetMax | ( | ) | const |
Get the maximum value of all the vector coordinates.
| FORCEINLINE float FTwoVectors::GetMin | ( | ) | const |
Get the minimum value of all the vector coordinates.
| FORCEINLINE bool FTwoVectors::operator!= | ( | const FTwoVectors & | V | ) | const |
Checks two pairs for inequality.
| V | The other pair. |
| FORCEINLINE FTwoVectors FTwoVectors::operator* | ( | const FTwoVectors & | V | ) | const |
Gets result of multiplying two pairs of vectors.
| V | The pair to multiply with. |
| FORCEINLINE FTwoVectors FTwoVectors::operator* | ( | float | Scale | ) | const |
Gets result of scaling pair of vectors.
| Scale | The scaling factor. |
| FORCEINLINE FTwoVectors FTwoVectors::operator*= | ( | const FTwoVectors & | V | ) |
Multiply the pair by another.
| The | other pair. |
| FORCEINLINE FTwoVectors FTwoVectors::operator*= | ( | float | Scale | ) |
Scale the pair.
| Scale | What to scale by. |
| FORCEINLINE FTwoVectors FTwoVectors::operator+ | ( | const FTwoVectors & | V | ) | const |
Gets result of addition of two pairs of vectors.
| V | The pair to add. |
| FORCEINLINE FTwoVectors FTwoVectors::operator+= | ( | const FTwoVectors & | V | ) |
Add a pair to this.
| The | pair to add. |
| FORCEINLINE FTwoVectors FTwoVectors::operator- | ( | ) | const |
Get a negated copy of the pair.
| FORCEINLINE FTwoVectors FTwoVectors::operator- | ( | const FTwoVectors & | V | ) | const |
Gets result of subtraction of two pairs of vectors.
| V | The pair to subtract. |
| FORCEINLINE FTwoVectors FTwoVectors::operator-= | ( | const FTwoVectors & | V | ) |
Subtract a pair from this.
| The | pair to subtract. |
| FORCEINLINE FTwoVectors FTwoVectors::operator/ | ( | const FTwoVectors & | V | ) | const |
Gets result of division of two pairs of vectors.
| V | The pair to divide by. |
| FORCEINLINE FTwoVectors FTwoVectors::operator/ | ( | float | Scale | ) | const |
Gets result of dividing pair of vectors.
| Scale | What to divide by. |
| FORCEINLINE FTwoVectors FTwoVectors::operator/= | ( | const FTwoVectors & | V | ) |
Divide the pair by another.
| The | other pair. |
| FORCEINLINE FTwoVectors FTwoVectors::operator/= | ( | float | V | ) |
Divide the pair.
| What | to divide by. |
| FORCEINLINE bool FTwoVectors::operator== | ( | const FTwoVectors & | V | ) | const |
Checks two pairs for equality.
| V | The other pair. |
| FORCEINLINE float & 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. |
| FORCEINLINE FString FTwoVectors::ToString | ( | ) | const |
Get a textual representation of this two-vector.
|
friend |
Serializes the two-vector.
| Ar | The archive to serialize into. |
| TwoVectors | The two-vector to serialize. |