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

Function get_length

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

Source from the content-addressed store, hash-verified

14
15 #[test]
16 fn get_length() {
17 let new_vector = vector2::Vector2 { x: 3.0, y: 4.0 };
18 let tar: f32 = 5.0;
19 let res = new_vector.get_length();
20 assert_approx_eq!(tar, res);
21 }
22
23 #[test]
24 fn inner_product() {

Callers

nothing calls this directly

Calls 1

get_lengthMethod · 0.45

Tested by

no test coverage detected