MCPcopy Create free account
hub / github.com/SolarLune/masterplan / Scale

Method Scale

utils.go:209–213  ·  view source on GitHub ↗
(scalar float32)

Source from the content-addressed store, hash-verified

207}
208
209func (point Vector) Scale(scalar float32) Vector {
210 point.X *= scalar
211 point.Y *= scalar
212 return point
213}
214
215func (point Vector) Unit() Vector {
216 l := point.Magnitude()

Callers 3

DrawMethod · 0.80
ThickLineFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected