MCPcopy 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
265float Rect::getCenterX() const noexcept {
266 return origin.x + size.width * 0.5f;
267}
268
269void Rect::setCenterX(float centerX) {
270 origin.x = centerX - size.width * 0.5f;

Callers 2

rect_get_center_xFunction · 0.80
queryMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected