Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OxideEngine/Oxide
/ get_squared_length
Method
get_squared_length
oxide_math/commons/vector3.rs:14–16 ·
view source on GitHub ↗
(&self)
Source
from the content-addressed store, hash-verified
12
13
impl vector::Length for Vector3 {
14
fn get_squared_length(&self) -> f32 {
15
self.x * self.x + self.y * self.y + self.z * self.z
16
}
17
18
fn get_length(&self) -> f32 {
19
self.get_squared_length().sqrt()
Callers
4
get_squared_length
Function · 0.45
get_squared_length
Function · 0.45
get_squared_length
Function · 0.45
get_length
Method · 0.45
Calls
no outgoing calls
Tested by
3
get_squared_length
Function · 0.36
get_squared_length
Function · 0.36
get_squared_length
Function · 0.36