identity static method

void identity(
  1. Mat2D mat
)

Implementation

static void identity(Mat2D mat) {
  mat[0] = 1.0;
  mat[1] = 0.0;
  mat[2] = 0.0;
  mat[3] = 1.0;
  mat[4] = 0.0;
  mat[5] = 0.0;
}