GenerateIdentityMatrix

Revision as of 00:24, 10 August 2010 by imported>DragoonWraith
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
< [[::Category:Functions|Category:Functions]]

A function added by the Oblivion Script Extender.

Syntax:

(idenMat:array) GenerateIdentityMatrix height:short 
(idenMat:array) IdentityMat height:short

Returns a square (n×n) matrix with each element along the diagonal (from top-left to bottom-right) filled with a 1, and every other element with 0.