setIdentity method
void
setIdentity()
Sets the matrix to the identity matrix.
Implementation
void setIdentity() {
for (var i = 0; i < 9; i++) {
values[i] = i % 4 == 0 ? 1.0 : 0.0;
}
}
Sets the matrix to the identity matrix.
void setIdentity() {
for (var i = 0; i < 9; i++) {
values[i] = i % 4 == 0 ? 1.0 : 0.0;
}
}