Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/axmolengine/axmol
/ getNormalized
Method
getNormalized
core/math/Vec2.cpp:179–184 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
177
}
178
179
Vec2 Vec2::getNormalized() const
180
{
181
Vec2 v(*this);
182
v.normalize();
183
return v;
184
}
185
186
void Vec2::rotate(const Vec2& point, float angle)
187
{
Callers
1
getAngle
Method · 0.45
Calls
1
normalize
Method · 0.45
Tested by
no test coverage detected