func (p *Path) LineTo(x, y float32) {
	if len(p.segs) == 0 {
		p.segs = append(p.segs, []math.Segment{})
	}
	p.segs[len(p.segs)-1] = append(p.segs[len(p.segs)-1], math.Segment{p.cur, math.Point{x, y}})
	p.cur = math.Point{x, y}
}
func (p *Path) LineTo(x, y float32) {
	if len(p.segs) == 0 {
		p.segs = append(p.segs, []math.Segment{})
	}
	p.segs[len(p.segs)-1] = append(p.segs[len(p.segs)-1], math.Segment{p.cur, math.Point{x, y}})
	p.cur = math.Point{x, y}
}
func ( p * Path ) LineTo ( x , y float32 ) { if len ( p . segs ) == 0 { p . segs = append ( p . segs , [ ] math . Segment { } ) } p . segs [ len ( p . segs ) - 1 ] = append ( p . segs [ len ( p . segs ) - 1 ] , math . Segment { p . cur , math . Point { x , y } } ) p . cur = math . Point { x , y } }
// LineTo adds a math.Segment to the path, which starts from the current position and ends to the given position (x, y).
//
// LineTo updates the current position to (x, y).
LineTo adds a math . Segment to the path which starts from the current position and ends to the given position ( x y ) . LineTo updates the current position to ( x y ) .