MCPcopy Index your code
hub / github.com/tdewolff/canvas / Empty

Method Empty

util.go:399–401  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

397}
398
399func (r Rect) Empty() bool {
400 return Equal(r.W(), 0.0) || Equal(r.H(), 0.0)
401}
402
403// W returns the width of the rectangle.
404func (r Rect) W() float64 {

Callers 1

BoundsMethod · 0.95

Calls 3

WMethod · 0.95
HMethod · 0.95
EqualFunction · 0.85

Tested by

no test coverage detected