MCPcopy Create free account
hub / github.com/IppClub/Dora-SSR / getAnchor

Method getAnchor

Source/Node/Node.cpp:239–242  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

237}
238
239Vec2 Node::getAnchor() const noexcept {
240 if (_transform) return {_transform->anchorX, _transform->anchorY};
241 return {0.5f, 0.5f};
242}
243
244Vec2 Node::getAnchorPoint() const noexcept {
245 if (_transform) return {_transform->anchorPointX, _transform->anchorPointY};

Callers 4

ARRAY_STARTFunction · 0.80
SetAnchorXFunction · 0.80
SetAnchorYFunction · 0.80
node_get_anchorFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected