MCPcopy Create free account
hub / github.com/tdewolff/canvas / RectFromSize

Function RectFromSize

util.go:380–382  ·  view source on GitHub ↗
(x, y, w, h float64)

Source from the content-addressed store, hash-verified

378}
379
380func RectFromSize(x, y, w, h float64) Rect {
381 return Rect{x, y, x + w, y + h}
382}
383
384func RectFromPoints(ps ...Point) Rect {
385 if len(ps) == 0 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected