numsToPoints function
Converts a List<num>, as pairs, to a List<Point>.
Implementation
List<Point<num>> numsToPoints(List<num> perspective) {
var points = <Point<num>>[];
for (var i = 1; i < perspective.length; i += 2) {
var x = perspective[i - 1];
var y = perspective[i];
points.add(Point(x, y));
}
return points;
}