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

19 lines
263 B
Markdown
Raw Permalink Normal View History

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