fromMatrix function

List<Vector2> fromMatrix(
  1. Matrix input
)

Implementation

List<Vector2> fromMatrix(Matrix input) {
  List<Vector2> output = [];

  for (var row in input) {
    output.add(Vector2(row.elementAt(0), row.elementAt(1)));
  }

  return output;
}