get diagonal matrix, diagonal elements fills cyclically
only: if( (W==H && isStatic) || isDynamicOne )
See Implementation
get diagonal matrix, diagonal elements fills cyclically
only: if( (W==H && isStatic) || isDynamicOne )