Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OxideEngine/Oxide
/ distance
Method
distance
oxide_math/commons/vector2.rs:73–75 ·
view source on GitHub ↗
(&self, _rhs: &Self)
Source
from the content-addressed store, hash-verified
71
72
impl vector::Distance for Vector2 {
73
fn distance(&self, _rhs: &Self) -> f32 {
74
(self - _rhs).get_length()
75
}
76
}
77
78
impl vector::Clamp for Vector2 {
Callers
nothing calls this directly
Calls
1
get_length
Method · 0.45
Tested by
no test coverage detected