fix #18: incorrect multiplication on smooth curve control points

master
Sameer Puri 4 years ago
parent 26d4471b80
commit 69287b2879

@ -219,12 +219,10 @@ impl<'input> Turtle<'input> {
self.current_position = cbs.to; self.current_position = cbs.to;
// See https://www.w3.org/TR/SVG/paths.html#ReflectedControlPoints // See https://www.w3.org/TR/SVG/paths.html#ReflectedControlPoints
self.previous_control = Some( self.previous_control = Some(point(
point( 2. * self.current_position.x - cbs.ctrl2.x,
self.current_position.x - cbs.ctrl2.x, 2. * self.current_position.y - cbs.ctrl2.y,
self.current_position.y - cbs.ctrl2.y, ));
) * 2.,
);
self.machine self.machine
.tool_on() .tool_on()

Loading…
Cancel
Save