Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/tdewolff/canvas
/ Zero
Method
Zero
util.go:395–397 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
393
}
394
395
func
(r Rect) Zero() bool {
396
return
r == Rect{}
397
}
398
399
func
(r Rect) Empty() bool {
400
return
Equal(r.W(), 0.0) || Equal(r.H(), 0.0)
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected