Function mat4.setDiagonal

set to diagonal: fill all items of matrix with zero except main diagonal items which will be assigned to v

Prototype

ref mat4 setDiagonal(
  float v
);

Authors

Copyright

License