Closed returns true if the last subpath of p is a closed path.
()
| 245 | |
| 246 | // Closed returns true if the last subpath of p is a closed path. |
| 247 | func (p *Path) Closed() bool { |
| 248 | return 0 < len(p.d) && p.d[len(p.d)-1] == CloseCmd |
| 249 | } |
| 250 | |
| 251 | // PointClosed returns true if the last subpath of p is a closed path and the close command is a point and not a line. |
| 252 | func (p *Path) PointClosed() bool { |
no outgoing calls