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

Function add

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

Source from the content-addressed store, hash-verified

99
100 #[test]
101 fn add() {
102 let new_vector_1 = vector2::Vector2 { x: 3.0, y: 4.0 };
103 let new_vector_2 = vector2::Vector2 { x: 3.0, y: 7.0 };
104 let tar_vector = vector2::Vector2 { x: 6.0, y: 11.0 };
105 let res_vector = new_vector_1 + new_vector_2;
106 assert_vector2_approx_eq(&tar_vector, &res_vector);
107 }
108
109 #[test]
110 fn sub() {

Callers

nothing calls this directly

Calls 1

assert_vector2_approx_eqFunction · 0.85

Tested by

no test coverage detected