identity function

List<int> identity()

Creates a 3x3 identity matrix

Implementation

List<int> identity() {
  return [
    1, 0, 0,
    0, 1, 0,
    0, 0, 1,
  ];
}