MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / setRotation

Method setRotation

extlibs/sfe/src/ComplexTransformable.cpp:36–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34 }
35
36 void ComplexTransformable::setRotation(float angle)
37 {
38 m_rotation = static_cast<float>(fmod(angle, 360));
39 if (m_rotation < 0)
40 m_rotation += 360.f;
41
42 m_transformNeedUpdate = true;
43 m_inverseTransformNeedUpdate = true;
44 }
45
46 void ComplexTransformable::setScale(float factorX, float factorY)
47 {

Callers 1

copyFromSpriteMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected