FCT
载入中...
搜索中...
未找到
FCT::Vec2结构体 参考

#include <Vec.h>

FCT::Vec2 的协作图:
Collaboration graph

Public 成员函数

 Vec2 (int x, int y)
 Vec2 (float x=0.0f, float y=0.0f)
 Vec2 (uint32_t x, uint32_t y)
Vec2operator+= (const Vec2 &rhs)
Vec2 operator+ (const Vec2 &rhs) const
Vec2 operator- (const Vec2 &rhs) const
Vec2 operator* (const Vec2 &rhs) const
Vec2 operator* (float scalar) const
Vec2 operator/ (float scalar) const
Vec2 operator/ (const Vec2 &rhs) const
bool operator== (const Vec2 &other) const
float length () const
float distance (const Vec2 &other) const
template<class Archive>
void serialize (Archive &ar, const unsigned int version)

Public 属性

float x
float y

友元

class boost::serialization::access

详细描述

在文件 Vec.h9 行定义.

构造及析构函数说明

◆ Vec2() [1/3]

FCT::Vec2::Vec2 ( int x,
int y )
inline

在文件 Vec.h12 行定义.

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

◆ Vec2() [2/3]

FCT::Vec2::Vec2 ( float x = 0.0f,
float y = 0.0f )
inline

在文件 Vec.h16 行定义.

◆ Vec2() [3/3]

FCT::Vec2::Vec2 ( uint32_t x,
uint32_t y )
inline

在文件 Vec.h17 行定义.

成员函数说明

◆ distance()

float FCT::Vec2::distance ( const Vec2 & other) const
inline

在文件 Vec.h61 行定义.

函数调用图:

◆ length()

float FCT::Vec2::length ( ) const
inline

在文件 Vec.h57 行定义.

◆ operator*() [1/2]

Vec2 FCT::Vec2::operator* ( const Vec2 & rhs) const
inline

在文件 Vec.h37 行定义.

函数调用图:

◆ operator*() [2/2]

Vec2 FCT::Vec2::operator* ( float scalar) const
inline

在文件 Vec.h41 行定义.

函数调用图:

◆ operator+()

Vec2 FCT::Vec2::operator+ ( const Vec2 & rhs) const
inline

在文件 Vec.h29 行定义.

函数调用图:

◆ operator+=()

Vec2 & FCT::Vec2::operator+= ( const Vec2 & rhs)
inline

在文件 Vec.h23 行定义.

函数调用图:

◆ operator-()

Vec2 FCT::Vec2::operator- ( const Vec2 & rhs) const
inline

在文件 Vec.h33 行定义.

函数调用图:

◆ operator/() [1/2]

Vec2 FCT::Vec2::operator/ ( const Vec2 & rhs) const
inline

在文件 Vec.h49 行定义.

函数调用图:

◆ operator/() [2/2]

Vec2 FCT::Vec2::operator/ ( float scalar) const
inline

在文件 Vec.h45 行定义.

函数调用图:

◆ operator==()

bool FCT::Vec2::operator== ( const Vec2 & other) const
inline

在文件 Vec.h53 行定义.

函数调用图:

◆ serialize()

template<class Archive>
void FCT::Vec2::serialize ( Archive & ar,
const unsigned int version )
inline

在文件 Vec.h67 行定义.

◆ boost::serialization::access

friend class boost::serialization::access
friend

在文件 Vec.h65 行定义.

类成员变量说明

◆ x

float FCT::Vec2::x

在文件 Vec.h11 行定义.

◆ y

float FCT::Vec2::y

在文件 Vec.h11 行定义.


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