Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OneLoneCoder/olcPixelGameEngine
/ SetRotation
Method
SetRotation
extensions/olcPGEX_Wireframe.h:230–234 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
228
}
229
230
void Model::SetRotation(const float angle)
231
{
232
matLocalRotation.rotate(angle);
233
matLocal = matLocalRotation * matLocalTranslation;
234
}
235
236
void Model::SetPosition(const olc::vf2d& position)
237
{
Callers
1
Attach
Method · 0.80
Calls
1
rotate
Method · 0.80
Tested by
no test coverage detected