36 lines
676 B
Markdown
36 lines
676 B
Markdown
|
|
# RectInt::GetBottom
|
|||
|
|
|
|||
|
|
```cpp
|
|||
|
|
int32_t GetBottom() const;
|
|||
|
|
```
|
|||
|
|
|
|||
|
|
获取矩形下边界 y 坐标。
|
|||
|
|
|
|||
|
|
**返回:** 矩形下边界 y 坐标(等于 y + height)
|
|||
|
|
|
|||
|
|
**线程安全:** ✅
|
|||
|
|
|
|||
|
|
**复杂度:** O(1)
|
|||
|
|
|
|||
|
|
**示例:**
|
|||
|
|
|
|||
|
|
```cpp
|
|||
|
|
#include "XCEngine/Math/Rect.h"
|
|||
|
|
#include <iostream>
|
|||
|
|
|
|||
|
|
using namespace XCEngine::Math;
|
|||
|
|
|
|||
|
|
int main() {
|
|||
|
|
RectInt rect(10, 20, 100, 50);
|
|||
|
|
int32_t bottom = rect.GetBottom();
|
|||
|
|
std::cout << "Bottom: " << bottom << "\n";
|
|||
|
|
return 0;
|
|||
|
|
}
|
|||
|
|
```
|
|||
|
|
|
|||
|
|
## 相关文档
|
|||
|
|
|
|||
|
|
- [`RectInt::GetLeft`](getleft.md) - 获取左边界
|
|||
|
|
- [`RectInt::GetRight`](getright.md) - 获取右边界
|
|||
|
|
- [`RectInt::GetTop`](gettop.md) - 获取上边界
|
|||
|
|
- [RectInt 总览](rectint.md)
|