Files
XCEngine/docs/api/math/rectint/getleft.md

247 B

RectInt::GetLeft

int32_t GetLeft() const

获取矩形左边界。

返回: int32_t - 左边界坐标 (x)

复杂度: O(1)

示例:

RectInt rect(10, 20, 100, 50);
int32_t left = rect.GetLeft();  // 10