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

Method scale

oxide_math/commons/vector2.rs:44–49  ·  view source on GitHub ↗
(&self, multiplier: f32)

Source from the content-addressed store, hash-verified

42
43impl vector::Scale for Vector2 {
44 fn scale(&self, multiplier: f32) -> Self {
45 Self {
46 x: self.x * multiplier,
47 y: self.y * multiplier,
48 }
49 }
50}
51
52impl vector::Negate for Vector2 {

Callers 3

negateMethod · 0.45
normalizeMethod · 0.45
project_on_toMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected