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

Function get_length

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

Source from the content-addressed store, hash-verified

19
20 #[test]
21 fn get_length() {
22 let new_vector = vector4::Vector4 {
23 x: 3.0,
24 y: 4.0,
25 z: 5.0,
26 w: 6.0,
27 };
28 let tar: f32 = 9.273_619;
29 let res = new_vector.get_length();
30 assert_approx_eq!(tar, res);
31 }
32
33 #[test]
34 fn inner_product() {

Callers

nothing calls this directly

Calls 1

get_lengthMethod · 0.45

Tested by

no test coverage detected