straightPath function

List<Vector3> straightPath(
  1. List<Vector3> a,
  2. List<Vector3> b,
  3. double alpha
)

Implementation

List<Vector3> straightPath(List<Vector3> a, List<Vector3> b, double alpha) {
  var array = interpolate<Array>(
      Array.fromVectorList(a), Array.fromVectorList(b), alpha);
  return [for (var row in array.values) Vector3(row[0], row[1], row[2])];
}