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

Method AddF

utils.go:139–141  ·  view source on GitHub ↗
(x, y float32)

Source from the content-addressed store, hash-verified

137}
138
139func (point Vector) AddF(x, y float32) Vector {
140 return Vector{point.X + x, point.Y + y}
141}
142
143func (point Vector) Mult(factor float32) Vector {
144 return Vector{point.X * factor, point.Y * factor}

Callers 3

DrawMethod · 0.95
DrawMethod · 0.95
UpdateMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected