Empty returns true if p is an empty path or consists of only MoveTos and Closes.
()
| 166 | |
| 167 | // Empty returns true if p is an empty path or consists of only MoveTos and Closes. |
| 168 | func (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. |
| 173 | func (p *Path) Equals(q *Path) bool { |