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

Method scale

oxide_math/commons/vector3.rs:50–56  ·  view source on GitHub ↗
(&self, multiplier: f32)

Source from the content-addressed store, hash-verified

48
49impl vector::Scale for Vector3 {
50 fn scale(&self, multiplier: f32) -> Self {
51 Self {
52 x: self.x * multiplier,
53 y: self.y * multiplier,
54 z: self.z * multiplier,
55 }
56 }
57}
58
59impl vector::Negate for Vector3 {

Callers 6

scale_3Function · 0.45
scale_3Function · 0.45
scale_3Function · 0.45
normalizeMethod · 0.45
negateMethod · 0.45
project_on_toMethod · 0.45

Calls

no outgoing calls

Tested by 3

scale_3Function · 0.36
scale_3Function · 0.36
scale_3Function · 0.36