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

Method Empty

path.go:168–170  ·  view source on GitHub ↗

Empty returns true if p is an empty path or consists of only MoveTos and Closes.

()

Source from the content-addressed store, hash-verified

166
167// Empty returns true if p is an empty path or consists of only MoveTos and Closes.
168func (p *Path) Empty() bool {
169 return p == nil || len(p.d) <= cmdLen(MoveToCmd)
170}
171
172// Equals returns true if p and q are equal within tolerance Epsilon.
173func (p *Path) Equals(q *Path) bool {

Callers 15

AppendMethod · 0.95
JoinMethod · 0.95
ReverseMethod · 0.95
ToSVGMethod · 0.95
ToPSMethod · 0.95
ToPDFMethod · 0.95
TestPathEmptyFunction · 0.95
bentleyOttmannFunction · 0.45
relateFunction · 0.45
EmptyMethod · 0.45
SubImageMethod · 0.45

Calls 1

cmdLenFunction · 0.85

Tested by 2

TestPathEmptyFunction · 0.76