lineTo(num x, num y) { var curve = LineCurve(currentPoint.clone(), Vector2(x.toDouble(), y.toDouble())); curves.add(curve); currentPoint.set(x.toDouble(), y.toDouble()); return this; }