Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/atraczyk/2d-engine
/ Magnitude
Method
Magnitude
engine/src/vector.cpp:84–87 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
82
}
83
84
float Vector2::Magnitude()
85
{
86
return sqrtf(this->x * this->x + this->y * this->y);
87
}
88
89
void Vector2::Normalize()
90
{
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected