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

Function get_squared_length

oxide_math/test/vector4.rs:8–18  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6
7 #[test]
8 fn get_squared_length() {
9 let new_vector = vector4::Vector4 {
10 x: 3.0,
11 y: 4.0,
12 z: 5.0,
13 w: 6.0,
14 };
15 let tar: f32 = 86.0;
16 let res = new_vector.get_squared_length();
17 assert_approx_eq!(tar, res);
18 }
19
20 #[test]
21 fn get_length() {

Callers

nothing calls this directly

Calls 1

get_squared_lengthMethod · 0.45

Tested by

no test coverage detected