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

Method normalize

oxide_math/commons/vector3.rs:22–24  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

20 }
21
22 fn normalize(&self) -> Self {
23 self.scale(self.get_length().recip())
24 }
25}
26
27// impl vector::Rotate for Vector3 {

Callers 6

test_from_axis_angleFunction · 0.45
normalizeFunction · 0.45
normalizeFunction · 0.45
normalizeFunction · 0.45
get_axis_angleFunction · 0.45
project_on_toMethod · 0.45

Calls 2

scaleMethod · 0.45
get_lengthMethod · 0.45

Tested by 4

test_from_axis_angleFunction · 0.36
normalizeFunction · 0.36
normalizeFunction · 0.36
normalizeFunction · 0.36