func (p *Path) LastPoint() (x, y float64) {
	return p.x, p.y
}
LastPoint returns the current point of the current path
package draw2d
import (
	"fmt"
	"math"
)
type PathBuilder interface {
	LastPoint() (x, y float64)
	MoveTo(x, y float64)
	LineTo(x, y float64)
	QuadCurveTo(cx, cy, x, y float64)
	CubicCurveTo(cx1, cy1, cx2, cy2, x, y float64)
	ArcTo(cx, cy, rx, ry, startAngle, angle float64)
	Close()
}
type PathCmp int
const (
	MoveToCmp PathCmp = iota
	LineToCmp
	QuadCurveToCmp
	CubicCurveToCmp
	ArcToCmp
	CloseCmp
)
type Path struct {
	Components []PathCmp
	Points []float64
	x, y float64
}
func (p *Path) appendToPath(cmd PathCmp, points ...float64) {
	p.Components = append(p.Components, cmd)
	p.Points = append(p.Points, points...)
}