CARLA
 
载入中...
搜索中...
未找到
Public 成员函数 | Public 属性 | 友元 | 所有成员列表
carla::geom::Vector2D类 参考

定义两个嵌套的命名空间:carla和geom。 更多...

#include <Vector2D.h>

+ carla::geom::Vector2D 的协作图:

Public 成员函数

float Length () const
 
Vector2D MakeUnitVector () const
 
bool operator!= (const Vector2D &rhs) const
 
Vector2D & operator*= (float rhs)
 
Vector2D & operator+= (const Vector2D &rhs)
 
Vector2D & operator-= (const Vector2D &rhs)
 
Vector2D & operator/= (float rhs)
 
bool operator== (const Vector2D &rhs) const
 
float SquaredLength () const
 
Vector2D ToCentimeters () const
 将向量从米转换为厘米 更多...
 
FVector2D ToFVector2D () const
 将向量转换为UE4引擎的FVector2D类型 更多...
 
Vector2D ToMeters () const
 将向量从厘米转换为米 更多...
 
 Vector2D ()=default
 
 Vector2D (float ix, float iy)
 定义一个默认构造函数。 更多...
 

Public 属性

float x = 0.0f
 定义一个名为Vector2D的公共类,用于表示二维向量。 更多...
 
float y = 0.0f
 

友元

Vector2D operator* (float lhs, Vector2D rhs)
 
Vector2D operator* (Vector2D lhs, float rhs)
 
Vector2D operator+ (Vector2D lhs, const Vector2D &rhs)
 
Vector2D operator- (Vector2D lhs, const Vector2D &rhs)
 
Vector2D operator/ (float lhs, Vector2D rhs)
 
Vector2D operator/ (Vector2D lhs, float rhs)
 

详细描述

定义两个嵌套的命名空间:carla和geom。

在文件 geom/Vector2D.h 第 17 行定义.

构造及析构函数说明

◆ Vector2D() [1/2]

carla::geom::Vector2D::Vector2D ( )
default

被这些函数引用 MakeUnitVector().

+ 这是这个函数的调用关系图:

◆ Vector2D() [2/2]

carla::geom::Vector2D::Vector2D ( float  ix,
float  iy 
)
inline

定义一个默认构造函数。

在文件 geom/Vector2D.h 第 34 行定义.

成员函数说明

◆ Length()

float carla::geom::Vector2D::Length ( ) const
inline

在文件 geom/Vector2D.h 第 46 行定义.

引用了 SquaredLength().

被这些函数引用 MakeUnitVector().

+ 函数调用图:
+ 这是这个函数的调用关系图:

◆ MakeUnitVector()

Vector2D carla::geom::Vector2D::MakeUnitVector ( ) const
inline

在文件 geom/Vector2D.h 第 50 行定义.

引用了 DEVELOPMENT_ASSERT, Length(), Vector2D(), x , 以及 y.

+ 函数调用图:

◆ operator!=()

bool carla::geom::Vector2D::operator!= ( const Vector2D &  rhs) const
inline

在文件 geom/Vector2D.h 第 123 行定义.

◆ operator*=()

Vector2D & carla::geom::Vector2D::operator*= ( float  rhs)
inline

在文件 geom/Vector2D.h 第 83 行定义.

引用了 x , 以及 y.

◆ operator+=()

Vector2D & carla::geom::Vector2D::operator+= ( const Vector2D &  rhs)
inline

在文件 geom/Vector2D.h 第 61 行定义.

引用了 x , 以及 y.

◆ operator-=()

Vector2D & carla::geom::Vector2D::operator-= ( const Vector2D &  rhs)
inline

在文件 geom/Vector2D.h 第 72 行定义.

引用了 x , 以及 y.

◆ operator/=()

Vector2D & carla::geom::Vector2D::operator/= ( float  rhs)
inline

在文件 geom/Vector2D.h 第 99 行定义.

引用了 x , 以及 y.

◆ operator==()

bool carla::geom::Vector2D::operator== ( const Vector2D &  rhs) const
inline

在文件 geom/Vector2D.h 第 119 行定义.

引用了 x , 以及 y.

◆ SquaredLength()

float carla::geom::Vector2D::SquaredLength ( ) const
inline

在文件 geom/Vector2D.h 第 42 行定义.

引用了 x , 以及 y.

被这些函数引用 Length().

+ 这是这个函数的调用关系图:

◆ ToCentimeters()

Vector2D carla::geom::Vector2D::ToCentimeters ( ) const
inline

将向量从米转换为厘米

在文件 geom/Vector2D.h 第 139 行定义.

◆ ToFVector2D()

FVector2D carla::geom::Vector2D::ToFVector2D ( ) const
inline

将向量转换为UE4引擎的FVector2D类型

在文件 geom/Vector2D.h 第 144 行定义.

引用了 x , 以及 y.

◆ ToMeters()

Vector2D carla::geom::Vector2D::ToMeters ( ) const
inline

将向量从厘米转换为米

在文件 geom/Vector2D.h 第 134 行定义.

友元及相关函数文档

◆ operator* [1/2]

Vector2D operator* ( float  lhs,
Vector2D  rhs 
)
friend

在文件 geom/Vector2D.h 第 94 行定义.

◆ operator* [2/2]

Vector2D operator* ( Vector2D  lhs,
float  rhs 
)
friend

在文件 geom/Vector2D.h 第 89 行定义.

◆ operator+

Vector2D operator+ ( Vector2D  lhs,
const Vector2D &  rhs 
)
friend

在文件 geom/Vector2D.h 第 67 行定义.

◆ operator-

Vector2D operator- ( Vector2D  lhs,
const Vector2D &  rhs 
)
friend

在文件 geom/Vector2D.h 第 78 行定义.

◆ operator/ [1/2]

Vector2D operator/ ( float  lhs,
Vector2D  rhs 
)
friend

在文件 geom/Vector2D.h 第 110 行定义.

◆ operator/ [2/2]

Vector2D operator/ ( Vector2D  lhs,
float  rhs 
)
friend

在文件 geom/Vector2D.h 第 105 行定义.

类成员变量说明

◆ x

float carla::geom::Vector2D::x = 0.0f

◆ y

float carla::geom::Vector2D::y = 0.0f

该类的文档由以下文件生成: