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

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

Issue 2283363004: GeometryInterace: Add rotate methods. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 3 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 29 matching lines...) Expand all
40 void setM43(double value) { m_matrix->setM43(value); setIs2D(!value); } 40 void setM43(double value) { m_matrix->setM43(value); setIs2D(!value); }
41 void setM44(double value) { m_matrix->setM44(value); setIs2D(value != 1); } 41 void setM44(double value) { m_matrix->setM44(value); setIs2D(value != 1); }
42 42
43 DOMMatrix* multiplySelf(DOMMatrix*); 43 DOMMatrix* multiplySelf(DOMMatrix*);
44 DOMMatrix* preMultiplySelf(DOMMatrix*); 44 DOMMatrix* preMultiplySelf(DOMMatrix*);
45 DOMMatrix* translateSelf(double tx, double ty, double tz = 0); 45 DOMMatrix* translateSelf(double tx, double ty, double tz = 0);
46 DOMMatrix* scaleSelf(double scale, double ox = 0, double oy = 0); 46 DOMMatrix* scaleSelf(double scale, double ox = 0, double oy = 0);
47 DOMMatrix* scale3dSelf(double scale, double ox = 0, double oy = 0, double oz = 0); 47 DOMMatrix* scale3dSelf(double scale, double ox = 0, double oy = 0, double oz = 0);
48 DOMMatrix* scaleNonUniformSelf(double sx, double sy = 1, double sz = 1, 48 DOMMatrix* scaleNonUniformSelf(double sx, double sy = 1, double sz = 1,
49 double ox = 0, double oy = 0, double oz = 0); 49 double ox = 0, double oy = 0, double oz = 0);
50 DOMMatrix* rotateSelf(double rotX);
51 DOMMatrix* rotateSelf(double rotX, double rotY);
52 DOMMatrix* rotateSelf(double rotX, double rotY, double rotZ);
53 DOMMatrix* rotateFromVectorSelf(double x, double y);
54 DOMMatrix* rotateAxisAngleSelf(double x, double y, double z, double angle);
50 55
51 private: 56 private:
52 DOMMatrix(const TransformationMatrix&, bool is2D = true); 57 DOMMatrix(const TransformationMatrix&, bool is2D = true);
53 58
54 void setIs2D(bool value); 59 void setIs2D(bool value);
55 }; 60 };
56 61
57 } // namespace blink 62 } // namespace blink
58 63
59 #endif 64 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698