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

Function scale_3

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

Source from the content-addressed store, hash-verified

51
52 #[test]
53 fn scale_3() {
54 let new_vector = vector4::Vector4 {
55 x: 3.0,
56 y: 4.0,
57 z: 5.0,
58 w: 6.0,
59 };
60 let tar_vector = vector4::Vector4 {
61 x: 9.0,
62 y: 12.0,
63 z: 15.0,
64 w: 18.0,
65 };
66 let res_vector = new_vector.scale(3.0);
67 assert_vector4_approx_eq(&tar_vector, &res_vector);
68 }
69
70 #[test]
71 fn negate() {

Callers

nothing calls this directly

Calls 2

assert_vector4_approx_eqFunction · 0.85
scaleMethod · 0.45

Tested by

no test coverage detected