MCPcopy 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

normalizeMethod · 0.45
distanceMethod · 0.45
project_on_toMethod · 0.45

Calls 1

get_squared_lengthMethod · 0.45

Tested by

no test coverage detected