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

Function outer_product

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

Source from the content-addressed store, hash-verified

31
32 #[test]
33 fn outer_product() {
34 let new_vector_1 = vector2::Vector2 { x: 3.0, y: 4.0 };
35 let new_vector_2 = vector2::Vector2 { x: 3.0, y: 7.0 };
36 let tar_vector = vector3::Vector3 {
37 x: 0.0,
38 y: 0.0,
39 z: 9.0,
40 };
41 let res_vector = new_vector_1.outer_product(&new_vector_2);
42 assert_vector3_approx_eq(&tar_vector, &res_vector);
43 }
44
45 #[test]
46 fn scale_3() {

Callers

nothing calls this directly

Calls 2

assert_vector3_approx_eqFunction · 0.85
outer_productMethod · 0.45

Tested by

no test coverage detected