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

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

Issue 2444733002: [GeometryInterface] Add rotate*(), rotateFromVector*() function. (Closed)
Patch Set: Created 4 years, 1 month 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 "bindings/core/v8/ExceptionStatePlaceholder.h" 8 #include "bindings/core/v8/ExceptionStatePlaceholder.h"
9 #include "core/dom/DOMMatrixInit.h" 9 #include "core/dom/DOMMatrixInit.h"
10 #include "core/dom/DOMMatrixReadOnly.h" 10 #include "core/dom/DOMMatrixReadOnly.h"
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 DOMMatrix* scaleSelf(double sx, 85 DOMMatrix* scaleSelf(double sx,
86 double sy, 86 double sy,
87 double sz = 1, 87 double sz = 1,
88 double ox = 0, 88 double ox = 0,
89 double oy = 0, 89 double oy = 0,
90 double oz = 0); 90 double oz = 0);
91 DOMMatrix* scale3dSelf(double scale, 91 DOMMatrix* scale3dSelf(double scale,
92 double ox = 0, 92 double ox = 0,
93 double oy = 0, 93 double oy = 0,
94 double oz = 0); 94 double oz = 0);
95 DOMMatrix* rotateSelf(double rotX);
96 DOMMatrix* rotateSelf(double rotX, double rotY);
97 DOMMatrix* rotateSelf(double rotX, double rotY, double rotZ);
meade_UTC10 2016/10/24 05:37:11 Can these use default arguments like the nearby fu
Hwanseung Lee 2016/10/24 14:33:43 i don't think so. rotate(x, 0, 0) is not same with
meade_UTC10 2016/10/25 02:33:04 Ah, I see. Thanks for the clarification!
98 DOMMatrix* rotateFromVectorSelf(double x, double y);
95 DOMMatrix* rotateAxisAngleSelf(double x = 0, 99 DOMMatrix* rotateAxisAngleSelf(double x = 0,
96 double y = 0, 100 double y = 0,
97 double z = 0, 101 double z = 0,
98 double angle = 0); 102 double angle = 0);
99 DOMMatrix* skewXSelf(double sx = 0); 103 DOMMatrix* skewXSelf(double sx = 0);
100 DOMMatrix* skewYSelf(double sy = 0); 104 DOMMatrix* skewYSelf(double sy = 0);
101 DOMMatrix* invertSelf(); 105 DOMMatrix* invertSelf();
102 106
103 private: 107 private:
104 DOMMatrix(const TransformationMatrix&, bool is2D = true); 108 DOMMatrix(const TransformationMatrix&, bool is2D = true);
105 template <typename T> 109 template <typename T>
106 DOMMatrix(T sequence, int size); 110 DOMMatrix(T sequence, int size);
107 111
108 void setIs2D(bool value); 112 void setIs2D(bool value);
109 void setNAN(); 113 void setNAN();
110 }; 114 };
111 115
112 } // namespace blink 116 } // namespace blink
113 117
114 #endif 118 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698