pub fn line_to(&mut self, x: f64, y: f64) {
        let p = Point(x, y);
        if let Some(last_pos) = self.last_pos {
            self.push(PathItem::Line(Line(last_pos, p)));
        }
        self.set_pos(p);
    }
/// Add a segment that from current position to specified position. And then set the end position to current position.
Add a segment that from current position to specified position. And then set the end position to current position.
Add a segment that from current position to specified position . And then set the end position to current position .
pub fn line_to(&mut self, x: f64, y: f64) {
        let p = Point(x, y);
        if let Some(last_pos) = self.last_pos {
            self.push(PathItem::Line(Line(last_pos, p)));
        }
        self.set_pos(p);
    }
pub fn line_to ( & mut self , x : f64 , y : f64 ) { let p = Point ( x , y ) ; if let Some ( last_pos ) = self . last_pos { self . push ( PathItem :: Line ( Line ( last_pos , p ) ) ) ; } self . set_pos ( p ) ; }
Add a segment that from current position to specified position.
Add a segment that from current position to specified position .
&mut self
x
f64
y
f64