OLD | NEW |
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 DOMMatrixReadOnly_h | 5 #ifndef DOMMatrixReadOnly_h |
6 #define DOMMatrixReadOnly_h | 6 #define DOMMatrixReadOnly_h |
7 | 7 |
8 #include "platform/heap/Handle.h" | 8 #include "platform/heap/Handle.h" |
9 | 9 |
10 namespace blink { | 10 namespace blink { |
(...skipping 20 matching lines...) Expand all Loading... |
31 double m33() const { return m_matrix[2][2]; } | 31 double m33() const { return m_matrix[2][2]; } |
32 double m34() const { return m_matrix[2][3]; } | 32 double m34() const { return m_matrix[2][3]; } |
33 double m41() const { return m_matrix[3][0]; } | 33 double m41() const { return m_matrix[3][0]; } |
34 double m42() const { return m_matrix[3][1]; } | 34 double m42() const { return m_matrix[3][1]; } |
35 double m43() const { return m_matrix[3][2]; } | 35 double m43() const { return m_matrix[3][2]; } |
36 double m44() const { return m_matrix[3][3]; } | 36 double m44() const { return m_matrix[3][3]; } |
37 | 37 |
38 bool is2D() const; | 38 bool is2D() const; |
39 bool isIdentity() const; | 39 bool isIdentity() const; |
40 | 40 |
| 41 DOMMatrix* scale(double scale, double ox = 0, double oy = 0); |
| 42 DOMMatrix* scale3d(double scale, double ox = 0, double oy = 0, double oz = 0
); |
| 43 DOMMatrix* scaleNonUniform(double sx, double sy = 1, double sz = 1, |
| 44 double ox = 0, double oy = 0, double oz = 0); |
| 45 |
41 void trace(Visitor*) { } | 46 void trace(Visitor*) { } |
42 | 47 |
43 protected: | 48 protected: |
44 double m_matrix[4][4]; | 49 double m_matrix[4][4]; |
45 bool m_is2D; | 50 bool m_is2D; |
46 }; | 51 }; |
47 | 52 |
48 } // namespace blink | 53 } // namespace blink |
49 | 54 |
50 #endif | 55 #endif |
OLD | NEW |