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

Method get_squared_length

oxide_math/commons/vector2.rs:59–61  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

57
58impl vector::Length for Vector2 {
59 fn get_squared_length(&self) -> f32 {
60 self.x * self.x + self.y * self.y
61 }
62
63 fn get_length(&self) -> f32 {
64 self.get_squared_length().sqrt()

Callers 1

get_lengthMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected