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

Function scale_3

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

Source from the content-addressed store, hash-verified

47
48 #[test]
49 fn scale_3() {
50 let new_vector = vector3::Vector3 {
51 x: 3.0,
52 y: 4.0,
53 z: 5.0,
54 };
55 let tar_vector = vector3::Vector3 {
56 x: 9.0,
57 y: 12.0,
58 z: 15.0,
59 };
60 let res_vector = new_vector.scale(3.0);
61 assert_vector3_approx_eq(&tar_vector, &res_vector);
62 }
63
64 #[test]
65 fn negate() {

Callers

nothing calls this directly

Calls 2

assert_vector3_approx_eqFunction · 0.85
scaleMethod · 0.45

Tested by

no test coverage detected