Files
XCSDD/docs/api/math/rect/rectint-getleft.md

19 lines
247 B
Markdown
Raw Normal View History

# RectInt::GetLeft
```cpp
int32_t GetLeft() const
```
获取矩形左边界。
**返回:** `int32_t` - 左边界坐标 (x)
**复杂度:** O(1)
**示例:**
```cpp
RectInt rect(10, 20, 100, 50);
int32_t left = rect.GetLeft(); // 10
```