Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/IppClub/Dora-SSR
/ getCenterX
Method
getCenterX
Source/Support/Geometry.cpp:265–267 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
263
}
264
265
float Rect::getCenterX() const noexcept {
266
return origin.x + size.width * 0.5f;
267
}
268
269
void Rect::setCenterX(float centerX) {
270
origin.x = centerX - size.width * 0.5f;
Callers
2
rect_get_center_x
Function · 0.80
query
Method · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected