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

19 lines
250 B
Markdown
Raw Normal View History

# Rect::GetLeft
```cpp
float GetLeft() const
```
获取矩形左边界。
**返回:** `float` - 左边界坐标 (x)
**复杂度:** O(1)
**示例:**
```cpp
Rect rect(10.0f, 20.0f, 100.0f, 50.0f);
float left = rect.GetLeft(); // 10.0f
```