Difference between revisions of "MatrixTrace"
imported>CSbot (Automated import of articles) |
(No difference)
|
Revision as of 01:24, 9 August 2010
This article has been added to the Wiki by CSbot, an automated WikiBot. If you notice anything wrong with this page, please notify DragoonWraith, this bot's operator, by adding a comment to the end of User talk:DragoonWraith. If this article seems to be correct, then you can help the Wiki by removing this message, by editing this page and deleting the {{BotAddedPage}} template from the top of it. Thank you.
A function added by the Oblivion Script Extender.
Syntax:
(trace:float) MatrixTrace squareMatrix:array (trace:float) tr squareMatrix:array
Returns the trace of a square matrix, that is the sum of the elements along the diagonal (from top-left to bottom-right).
Warning: If the matrix is not square, the return value will be zero, but zero is also a possible value for an actual trace; it is the scripter's responsibility to ensure that the matrix is square.