engine
 
载入中...
搜索中...
未找到
Public 成员函数 | Public 属性 | 友元 | 所有成员列表
FTwoVectors结构体 参考

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.

构造及析构函数说明

◆ FTwoVectors() [1/2]

FORCEINLINE FTwoVectors::FTwoVectors ( FVector  In1,
FVector  In2 
)

Creates and initializes a new instance with the specified vectors.

参数
In1The first Vector.
In2The second Vector.

◆ FTwoVectors() [2/2]

FORCEINLINE FTwoVectors::FTwoVectors ( EForceInit  )
explicit

Constructor.

参数
EForceInitForce Init Enum

成员函数说明

◆ Equals()

FORCEINLINE bool FTwoVectors::Equals ( const FTwoVectors &  V,
float  Tolerance = KINDA_SMALL_NUMBER 
) const

Error-tolerant comparison.

参数
VThe other pair.
ToleranceError Tolerance.
返回
true if two pairs are equal within specified tolerance, false otherwise..

◆ GetMax()

FORCEINLINE float FTwoVectors::GetMax ( ) const

Get the maximum value of all the vector coordinates.

返回
The maximum value of all the vector coordinates.

◆ GetMin()

FORCEINLINE float FTwoVectors::GetMin ( ) const

Get the minimum value of all the vector coordinates.

返回
The minimum value of all the vector coordinates.

◆ operator!=()

FORCEINLINE bool FTwoVectors::operator!= ( const FTwoVectors &  V) const

Checks two pairs for inequality.

参数
VThe other pair.
返回
true if the two pairs are different, false otherwise..

◆ operator*() [1/2]

FORCEINLINE FTwoVectors FTwoVectors::operator* ( const FTwoVectors &  V) const

Gets result of multiplying two pairs of vectors.

参数
VThe pair to multiply with.
返回
Result of multiplication.

◆ operator*() [2/2]

FORCEINLINE FTwoVectors FTwoVectors::operator* ( float  Scale) const

Gets result of scaling pair of vectors.

参数
ScaleThe scaling factor.
返回
Result of Scaling.

◆ operator*=() [1/2]

FORCEINLINE FTwoVectors FTwoVectors::operator*= ( const FTwoVectors &  V)

Multiply the pair by another.

参数
Theother pair.
返回
Copy of the pair after multiplication.

◆ operator*=() [2/2]

FORCEINLINE FTwoVectors FTwoVectors::operator*= ( float  Scale)

Scale the pair.

参数
ScaleWhat to scale by.
返回
Copy of the pair after scaling.

◆ operator+()

FORCEINLINE FTwoVectors FTwoVectors::operator+ ( const FTwoVectors &  V) const

Gets result of addition of two pairs of vectors.

参数
VThe pair to add.
返回
Result of addition.

◆ operator+=()

FORCEINLINE FTwoVectors FTwoVectors::operator+= ( const FTwoVectors &  V)

Add a pair to this.

参数
Thepair to add.
返回
Copy of the pair after addition.

◆ operator-() [1/2]

FORCEINLINE FTwoVectors FTwoVectors::operator- ( ) const

Get a negated copy of the pair.

返回
A negated copy of the pair.

◆ operator-() [2/2]

FORCEINLINE FTwoVectors FTwoVectors::operator- ( const FTwoVectors &  V) const

Gets result of subtraction of two pairs of vectors.

参数
VThe pair to subtract.
返回
Result of subtraction.

◆ operator-=()

FORCEINLINE FTwoVectors FTwoVectors::operator-= ( const FTwoVectors &  V)

Subtract a pair from this.

参数
Thepair to subtract.
返回
Copy of the pair after subtraction.

◆ operator/() [1/2]

FORCEINLINE FTwoVectors FTwoVectors::operator/ ( const FTwoVectors &  V) const

Gets result of division of two pairs of vectors.

参数
VThe pair to divide by.
返回
Result of division.

◆ operator/() [2/2]

FORCEINLINE FTwoVectors FTwoVectors::operator/ ( float  Scale) const

Gets result of dividing pair of vectors.

参数
ScaleWhat to divide by.
返回
Result of division.

◆ operator/=() [1/2]

FORCEINLINE FTwoVectors FTwoVectors::operator/= ( const FTwoVectors &  V)

Divide the pair by another.

参数
Theother pair.
返回
Copy of the pair after multiplication.

◆ operator/=() [2/2]

FORCEINLINE FTwoVectors FTwoVectors::operator/= ( float  V)

Divide the pair.

参数
Whatto divide by.
返回
Copy of the pair after division.

◆ operator==()

FORCEINLINE bool FTwoVectors::operator== ( const FTwoVectors &  V) const

Checks two pairs for equality.

参数
VThe other pair.
返回
true if the two pairs are equal, false otherwise..

◆ operator[]()

FORCEINLINE float & FTwoVectors::operator[] ( int32  i)

Get a specific component from the pair.

参数
iThe index of the component, even indices are for the first vector, odd ones are for the second. Returns index 5 if out of range.
返回
Reference to the specified component.

◆ ToString()

FORCEINLINE FString FTwoVectors::ToString ( ) const

Get a textual representation of this two-vector.

返回
A string describing the two-vector.

友元及相关函数文档

◆ operator<<

FArchive & operator<< ( FArchive &  Ar,
FTwoVectors &  TwoVectors 
)
friend

Serializes the two-vector.

参数
ArThe archive to serialize into.
TwoVectorsThe two-vector to serialize.
返回
Reference to the Archive after serialization.

该结构体的文档由以下文件生成: