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

Function add

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

Source from the content-addressed store, hash-verified

168
169 #[test]
170 fn add() {
171 let new_vector_1 = vector4::Vector4 {
172 x: 3.0,
173 y: 4.0,
174 z: 5.0,
175 w: 6.0,
176 };
177 let new_vector_2 = vector4::Vector4 {
178 x: 3.0,
179 y: 7.0,
180 z: 11.0,
181 w: 13.0,
182 };
183 let tar_vector = vector4::Vector4 {
184 x: 6.0,
185 y: 11.0,
186 z: 16.0,
187 w: 19.0,
188 };
189 let res_vector = new_vector_1 + new_vector_2;
190 assert_vector4_approx_eq(&tar_vector, &res_vector);
191 }
192 #[test]
193 fn sub() {
194 let new_vector_1 = vector4::Vector4 {

Callers

nothing calls this directly

Calls 1

assert_vector4_approx_eqFunction · 0.85

Tested by

no test coverage detected