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

Function add

oxide_math/test/vector3.rs:153–171  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

151
152 #[test]
153 fn add() {
154 let new_vector_1 = vector3::Vector3 {
155 x: 3.0,
156 y: 4.0,
157 z: 5.0,
158 };
159 let new_vector_2 = vector3::Vector3 {
160 x: 3.0,
161 y: 7.0,
162 z: 11.0,
163 };
164 let tar_vector = vector3::Vector3 {
165 x: 6.0,
166 y: 11.0,
167 z: 16.0,
168 };
169 let res_vector = new_vector_1 + new_vector_2;
170 assert_vector3_approx_eq(&tar_vector, &res_vector);
171 }
172 #[test]
173 fn sub() {
174 let new_vector_1 = vector3::Vector3 {

Callers

nothing calls this directly

Calls 1

assert_vector3_approx_eqFunction · 0.85

Tested by

no test coverage detected