MCPcopy Create free account
hub / github.com/OxideEngine/Oxide / get_squared_length

Method get_squared_length

oxide_math/commons/vector4.rs:15–17  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

13
14impl vector::Length for Vector4 {
15 fn get_squared_length(&self) -> f32 {
16 self.x * self.x + self.y * self.y + self.z * self.z + self.w * self.w
17 }
18
19 fn get_length(&self) -> f32 {
20 self.get_squared_length().sqrt()

Callers 1

get_lengthMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected