Update API documentation and remove obsolete plan files
This commit is contained in:
@@ -1,36 +1,18 @@
|
||||
# RectInt::GetRight
|
||||
|
||||
```cpp
|
||||
int32_t GetRight() const;
|
||||
int32_t GetRight() const
|
||||
```
|
||||
|
||||
获取矩形右边界 x 坐标。
|
||||
获取矩形右边界。
|
||||
|
||||
**返回:** 矩形右边界 x 坐标(等于 x + width)
|
||||
|
||||
**线程安全:** ✅
|
||||
**返回:** `int32_t` - 右边界坐标 (x + width)
|
||||
|
||||
**复杂度:** O(1)
|
||||
|
||||
**示例:**
|
||||
|
||||
```cpp
|
||||
#include "XCEngine/Math/Rect.h"
|
||||
#include <iostream>
|
||||
|
||||
using namespace XCEngine::Math;
|
||||
|
||||
int main() {
|
||||
RectInt rect(10, 20, 100, 50);
|
||||
int32_t right = rect.GetRight();
|
||||
std::cout << "Right: " << right << "\n";
|
||||
return 0;
|
||||
}
|
||||
RectInt rect(10, 20, 100, 50);
|
||||
int32_t right = rect.GetRight(); // 110
|
||||
```
|
||||
|
||||
## 相关文档
|
||||
|
||||
- [`RectInt::GetLeft`](getleft.md) - 获取左边界
|
||||
- [`RectInt::GetTop`](gettop.md) - 获取上边界
|
||||
- [`RectInt::GetBottom`](getbottom.md) - 获取下边界
|
||||
- [RectInt 总览](rectint.md)
|
||||
Reference in New Issue
Block a user