MCPcopy Create free account
hub / github.com/egonelbre/exp / Scale

Method Scale

inline/g/vec.go:15–17  ·  view source on GitHub ↗

Scale multiples each component by u. go:fix inline

(u float64)

Source from the content-addressed store, hash-verified

13//
14//go:fix inline
15func (v Vec2) Scale(u float64) Vec2 {
16 return Vec2{X: v.X * u, Y: v.Y * u}
17}

Callers 1

mainFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected