Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OxideEngine/Oxide
/ get_length
Method
get_length
oxide_math/commons/vector2.rs:63–65 ·
view source on GitHub ↗
(&self)
Source
from the content-addressed store, hash-verified
61
}
62
63
fn get_length(&self) -> f32 {
64
self.get_squared_length().sqrt()
65
}
66
67
fn normalize(&self) -> Self {
68
self.scale(self.get_length().recip())
Callers
3
normalize
Method · 0.45
distance
Method · 0.45
project_on_to
Method · 0.45
Calls
1
get_squared_length
Method · 0.45
Tested by
no test coverage detected