Closed Bug 444689 Opened 16 years ago Closed 16 years ago

Make gfxMatrix::HasNonTranslation and friends more forgiving

Categories

(Core :: Graphics, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: roc, Assigned: roc)

Details

Attachments

(1 file, 1 obsolete file)

Attached patch fix (obsolete) — Splinter Review
We should allow an epsilon tolerance in these methods. Right now if you multiply a translation matrix by A and then by A-inverse it might no longer be considered a translation matrix.
Attachment #329010 - Flags: review?(vladimir)
FuzzyEqual really shouldn't be inside gfxMatrix...
Where do you want it?
Yeah, that's a good question -- maybe in gfxTypes.h?  That's where we do the typedef for gfxFloat, maybe call it FloatFuzzyEquals or something (gfxFloatFuzzyEquals?)
Hm. Thebes doesn't have any global functions yet I guess. Could you handle gfxPlatform::FuzzyEquals?
Sure, though at that point we may as well do gfxUtils::FuzzyEquals?  There's probably other stuff we can dump onto gfxUtils as well
Attached patch fix v2Splinter Review
move to gfxUtils
Attachment #329010 - Attachment is obsolete: true
Attachment #329022 - Flags: review?(vladimir)
Attachment #329010 - Flags: review?(vladimir)
Comment on attachment 329022 [details] [diff] [review]
fix v2

Looks good, thanks!
Attachment #329022 - Flags: review?(vladimir) → review+
Pushed 9ec413364193.
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: