Difference between revisions of "User:DavidJCobb/Rotation Library"
User:DavidJCobb/Rotation Library (edit)
Revision as of 19:30, 26 August 2014
, 19:30, 26 August 2014whoops, that shouldn't have been -1
imported>DavidJCobb m (→Changelog: formatting fix) |
imported>DavidJCobb (whoops, that shouldn't have been -1) |
||
Line 8: | Line 8: | ||
== Changelog == | == Changelog == | ||
;8/26/2014 | ;8/26/2014 7:30pm EST | ||
:I appear to have successfully fixed issues that arose when converting rotation matrices to axis angles, when the resulting axis-angle had an angle of exactly 180. | :I appear to have successfully fixed issues that arose when converting rotation matrices to axis angles, when the resulting axis-angle had an angle of exactly 180. | ||
Line 118: | Line 118: | ||
Int iIterator = 0 | Int iIterator = 0 | ||
While iIterator < 3 | While iIterator < 3 | ||
Int iIndex = | Int iIndex = iLargestIndex * 3 + iIterator | ||
If iIterator != iLargestIndex | If iIterator != iLargestIndex | ||
fOutput[iIterator] = fOutput[iIterator] * Sign(afMatrix[iIndex]) | fOutput[iIterator] = fOutput[iIterator] * Sign(afMatrix[iIndex]) |