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

Public 属性

float x
float y

详细描述

在文件 Vec.h8 行定义.

构造及析构函数说明

◆ Vec2() [1/3]

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

在文件 Vec.h11 行定义.

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

◆ Vec2() [2/3]

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

在文件 Vec.h15 行定义.

◆ Vec2() [3/3]

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

在文件 Vec.h16 行定义.

成员函数说明

◆ distance()

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

在文件 Vec.h60 行定义.

函数调用图:

◆ length()

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

在文件 Vec.h56 行定义.

◆ operator*() [1/2]

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

在文件 Vec.h36 行定义.

函数调用图:

◆ operator*() [2/2]

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

在文件 Vec.h40 行定义.

函数调用图:

◆ operator+()

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

在文件 Vec.h28 行定义.

函数调用图:

◆ operator+=()

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

在文件 Vec.h22 行定义.

函数调用图:

◆ operator-()

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

在文件 Vec.h32 行定义.

函数调用图:

◆ operator/() [1/2]

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

在文件 Vec.h48 行定义.

函数调用图:

◆ operator/() [2/2]

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

在文件 Vec.h44 行定义.

函数调用图:

◆ operator==()

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

在文件 Vec.h52 行定义.

函数调用图:

类成员变量说明

◆ x

float FCT::Vec2::x

在文件 Vec.h10 行定义.

◆ y

float FCT::Vec2::y

在文件 Vec.h10 行定义.


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