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

Method scale

oxide_math/commons/vector4.rs:41–48  ·  view source on GitHub ↗
(&self, multiplier: f32)

Source from the content-addressed store, hash-verified

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

Callers 3

normalizeMethod · 0.45
negateMethod · 0.45
project_on_toMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected