Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
399
func
(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.
404
func
(r Rect) W() float64 {
Callers
1
Bounds
Method · 0.95
Calls
3
W
Method · 0.95
H
Method · 0.95
Equal
Function · 0.85
Tested by
no test coverage detected