MCPcopy Create free account
hub / github.com/axmolengine/axmol / setPositionNormalized

Method setPositionNormalized

core/2d/Node.cpp:588–597  ·  view source on GitHub ↗

position setter

Source from the content-addressed store, hash-verified

586
587/// position setter
588void Node::setPositionNormalized(const Vec2& position)
589{
590 if (_normalizedPosition.equals(position) && _usingNormalizedPosition)
591 return;
592
593 _normalizedPosition = position;
594 _usingNormalizedPosition = true;
595 _normalizedPositionDirty = true;
596 _transformUpdated = _transformDirty = _inverseDirty = true;
597}
598
599ssize_t Node::getChildrenCount() const
600{

Callers 13

NodeTests.cppFile · 0.45
initMethod · 0.45
initMethod · 0.45
updateMethod · 0.45
MeshRendererEmptyTestMethod · 0.45
CameraRotationTestMethod · 0.45
onEnterMethod · 0.45
initMethod · 0.45

Calls 1

equalsMethod · 0.45

Tested by 12

initMethod · 0.36
initMethod · 0.36
updateMethod · 0.36
MeshRendererEmptyTestMethod · 0.36
CameraRotationTestMethod · 0.36
onEnterMethod · 0.36
initMethod · 0.36
BillBoardRotationTestMethod · 0.36