|
| Point (float x=0, float y=0) noexcept |
|
float & | x () noexcept |
|
float & | y () noexcept |
|
const float & | x () const noexcept |
|
const float & | y () const noexcept |
|
Point & | operator= (const Point &other) noexcept |
|
Point | operator+ (const Point &other) const noexcept |
|
Point | operator- (const Point &other) const noexcept |
|
Point | operator* (const float &scale) const noexcept |
|
Point | operator/ (const float &scale) const noexcept |
|
Point & | operator+= (const Point &other) noexcept |
|
Point & | operator-= (const Point &other) noexcept |
|
Point & | operator*= (const float &scale) noexcept |
|
Point & | operator/= (const float &scale) noexcept |
|
bool | operator== (const Point &other) const noexcept |
|
bool | operator!= (const Point &other) const noexcept |
|
float | distance (const Point &other) const noexcept |
| 计算两点之间的距离
|
|
bool | inside (const Rect &rect) const noexcept |
| 判断点是否在矩形内,不包含边界
|
|
| Object () noexcept |
| 构造函数
|
|
virtual | ~Object () noexcept |
| 析构函数
|
|