Closed Bug 985320 Opened 12 years ago Closed 12 years ago

Add a static Matrix::Scaling method to Moz2D's Matrix

Categories

(Core :: Graphics, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla31

People

(Reporter: jwatt, Assigned: jwatt)

Details

Attachments

(1 file)

We should add a Matrix::Scaling method to Moz2D's Matrix class to compliment Matrix::Translation and Matrix::Rotation.
Attached patch patchSplinter Review
Attachment #8393358 - Flags: review?(bas)
Comment on attachment 8393358 [details] [diff] [review] patch Review of attachment 8393358 [details] [diff] [review]: ----------------------------------------------------------------- ::: gfx/2d/Matrix.h @@ +127,5 @@ > + { > + return Matrix(aX, 0.0f, 0.0f, aY, 0.0f, 0.0f); > + } > + > + static Matrix Scaling(Size aSize) I feel like it's wrong to Scale by a 'size'. That sort of means using 'size' as an arbitrary vector which I'd say is confusing.
Attachment #8393358 - Flags: review?(bas) → review+
https://hg.mozilla.org/integration/mozilla-inbound/rev/e455c486e2ec I removed the Size version before pushing. There's less of a need (if any) than there is for the Point version of Translation, so we can add that (or something like it) if and when we need it.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla31
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: