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

Function scale_3

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

Source from the content-addressed store, hash-verified

44
45 #[test]
46 fn scale_3() {
47 let new_vector = vector2::Vector2 { x: 3.0, y: 4.0 };
48 let tar_vector = vector2::Vector2 { x: 9.0, y: 12.0 };
49 let res_vector = new_vector.scale(3.0);
50 assert_vector2_approx_eq(&tar_vector, &res_vector);
51 }
52
53 #[test]
54 fn negate() {

Callers

nothing calls this directly

Calls 2

assert_vector2_approx_eqFunction · 0.85
scaleMethod · 0.45

Tested by

no test coverage detected