addLineTo method

void addLineTo(
  1. Vector3 pt
)

Implementation

void addLineTo(Vector3 pt) {
  var nppc = nPointsPerCurve; // 4

  var data = [
    for (var alpha in linspace(start: 0, end: 1, count: nppc).flat())
      interpolateValue(getLastPoint(), pt, alpha)
  ];

  return addCubicBezierCurveTo(
    data[1],
    data[2],
    data[3],
  );
}