setDiagonal method

void setDiagonal(
  1. Vector2 arg
)

Sets the diagonal of the matrix to be arg.

Implementation

void setDiagonal(Vector2 arg) {
  final argStorage = arg._v2storage;
  _m2storage[0] = argStorage[0];
  _m2storage[3] = argStorage[1];
}