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

Function distance1

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

Source from the content-addressed store, hash-verified

61
62 #[test]
63 fn distance1() {
64 let new_vector_1 = vector2::Vector2 { x: 3.0, y: 4.0 };
65 let new_vector_2 = vector2::Vector2 { x: 3.0, y: 7.0 };
66 let target = 3.0;
67 let result = new_vector_1.distance(&new_vector_2);
68 assert_approx_eq!(target, result);
69 }
70
71 #[test]
72 fn distance2() {

Callers

nothing calls this directly

Calls 1

distanceMethod · 0.45

Tested by

no test coverage detected