Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(55)

Side by Side Diff: Source/core/dom/DOMMatrix.h

Issue 479863002: Implement rotate*() methods in DOMMatrix. Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: add rotateFromVector and rotateAxisAngle Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef DOMMatrix_h 5 #ifndef DOMMatrix_h
6 #define DOMMatrix_h 6 #define DOMMatrix_h
7 7
8 #include "core/dom/DOMMatrixReadOnly.h" 8 #include "core/dom/DOMMatrixReadOnly.h"
9 9
10 namespace blink { 10 namespace blink {
(...skipping 25 matching lines...) Expand all
36 void setM41(double value) { m_matrix.setM41(value); } 36 void setM41(double value) { m_matrix.setM41(value); }
37 void setM42(double value) { m_matrix.setM42(value); } 37 void setM42(double value) { m_matrix.setM42(value); }
38 void setM43(double value) { m_matrix.setM43(value); setIs2D(!value); } 38 void setM43(double value) { m_matrix.setM43(value); setIs2D(!value); }
39 void setM44(double value) { m_matrix.setM44(value); setIs2D(value != 1); } 39 void setM44(double value) { m_matrix.setM44(value); setIs2D(value != 1); }
40 40
41 DOMMatrix* translateSelf(double tx, double ty, double tz = 0); 41 DOMMatrix* translateSelf(double tx, double ty, double tz = 0);
42 DOMMatrix* scaleSelf(double scale, double ox = 0, double oy = 0); 42 DOMMatrix* scaleSelf(double scale, double ox = 0, double oy = 0);
43 DOMMatrix* scale3dSelf(double scale, double ox = 0, double oy = 0, double oz = 0); 43 DOMMatrix* scale3dSelf(double scale, double ox = 0, double oy = 0, double oz = 0);
44 DOMMatrix* scaleNonUniformSelf(double sx, double sy = 1, double sz = 1, 44 DOMMatrix* scaleNonUniformSelf(double sx, double sy = 1, double sz = 1,
45 double ox = 0, double oy = 0, double oz = 0); 45 double ox = 0, double oy = 0, double oz = 0);
46 DOMMatrix* rotateSelf(double angle, double ox = 0, double oy = 0);
47 DOMMatrix* rotateFromVectorSelf(double x, double y);
48 DOMMatrix* rotateAxisAngleSelf(double x, double y, double z, double angle);
46 49
47 private: 50 private:
48 DOMMatrix(const TransformationMatrix&, bool is2D = true); 51 DOMMatrix(const TransformationMatrix&, bool is2D = true);
49 52
50 void setIs2D(bool value); 53 void setIs2D(bool value);
51 }; 54 };
52 55
53 } // namespace blink 56 } // namespace blink
54 57
55 #endif 58 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698