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)
Core
Graphics
Tracking
()
RESOLVED
FIXED
mozilla31
People
(Reporter: jwatt, Assigned: jwatt)
Details
Attachments
(1 file)
|
1.02 KB,
patch
|
bas.schouten
:
review+
|
Details | Diff | Splinter Review |
We should add a Matrix::Scaling method to Moz2D's Matrix class to compliment Matrix::Translation and Matrix::Rotation.
| Assignee | ||
Comment 1•12 years ago
|
||
Attachment #8393358 -
Flags: review?(bas)
Comment 2•12 years ago
|
||
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+
| Assignee | ||
Comment 3•12 years ago
|
||
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.
Comment 4•12 years ago
|
||
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.
Description
•