DescriptionMake SkMatrix44::invert() check for finite 1/det instead of magic value
Previously we were checking to see if the magnitude of
determinant of the matrix to be inverted was less than
1.0e-8, which is a magic number possibly plucked from
Graphics Gems. After some discussion, it's been determined
(ha) that we can simply check to see if 1/det is finite and
if so proceed.
BUG=222926
Committed: http://code.google.com/p/skia/source/detail?r=10758
Committed: http://code.google.com/p/skia/source/detail?r=10818
Patch Set 1 #
Total comments: 1
Patch Set 2 : Fix isfinite() check. #Patch Set 3 : Add suggested comment #Patch Set 4 : Shrink range of one matrix test to pass is_identity() check on i386-linux #Messages
Total messages: 13 (0 generated)
|