OLD | NEW |
---|---|
1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 PDFium 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 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
6 | 6 |
7 #ifndef _FX_BASIC_H_ | 7 #ifndef _FX_BASIC_H_ |
8 #define _FX_BASIC_H_ | 8 #define _FX_BASIC_H_ |
9 #ifndef _FX_SYSTEM_H_ | 9 #ifndef _FX_SYSTEM_H_ |
10 #include "fx_system.h" | 10 #include "fx_system.h" |
(...skipping 1562 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1573 typedef enum { | 1573 typedef enum { |
1574 Ready, | 1574 Ready, |
1575 ToBeContinued, | 1575 ToBeContinued, |
1576 Found, | 1576 Found, |
1577 NotFound, | 1577 NotFound, |
1578 Failed, | 1578 Failed, |
1579 Done | 1579 Done |
1580 } FX_ProgressiveStatus; | 1580 } FX_ProgressiveStatus; |
1581 #define ProgressiveStatus FX_ProgressiveStatus | 1581 #define ProgressiveStatus FX_ProgressiveStatus |
1582 #define FX_NAMESPACE_DECLARE(namespace, type) namespace::type | 1582 #define FX_NAMESPACE_DECLARE(namespace, type) namespace::type |
1583 | |
1584 class CFX_Vector_3by1 : public CFX_Object | |
1585 { | |
1586 public: | |
1587 | |
1588 CFX_Vector_3by1() : | |
1589 a(0.0f), b(0.0f), c(0.0f) | |
1590 {} | |
1591 | |
1592 CFX_Vector_3by1(FX_FLOAT a1, FX_FLOAT b1, FX_FLOAT c1): | |
1593 a(a1), b(b1), c(c1) | |
1594 {} | |
1595 | |
1596 public: | |
Lei Zhang
2014/07/25 00:42:05
The public here seems redundant? Same with CFX_Mat
Bo Xu
2014/07/25 00:48:08
Done.
| |
1597 FX_FLOAT a; | |
1598 FX_FLOAT b; | |
1599 FX_FLOAT c; | |
1600 }; | |
1601 class CFX_Matrix_3by3 : public CFX_Object | |
1602 { | |
1603 public: | |
1604 | |
1605 CFX_Matrix_3by3(): | |
1606 a(0.0f), b(0.0f), c(0.0f), d(0.0f), e(0.0f), f(0.0f), g(0.0f), h(0.0f), i(0.0f) | |
1607 {} | |
1608 | |
1609 CFX_Matrix_3by3(FX_FLOAT a1, FX_FLOAT b1, FX_FLOAT c1, FX_FLOAT d1, FX_FLOAT e1, FX_FLOAT f1, FX_FLOAT g1, FX_FLOAT h1, FX_FLOAT i1) : | |
1610 a(a1), b(b1), c(c1), d(d1), e(e1), f(f1), g(g1), h(h1), i(i1) | |
1611 {} | |
1612 | |
1613 CFX_Matrix_3by3 Inverse(); | |
1614 | |
1615 CFX_Matrix_3by3 Multiply(const CFX_Matrix_3by3 &m); | |
1616 | |
1617 CFX_Vector_3by1 TransformVector(const CFX_Vector_3by1 &v); | |
1618 | |
1619 public: | |
1620 FX_FLOAT a; | |
1621 FX_FLOAT b; | |
1622 FX_FLOAT c; | |
1623 FX_FLOAT d; | |
1624 FX_FLOAT e; | |
1625 FX_FLOAT f; | |
1626 FX_FLOAT g; | |
1627 FX_FLOAT h; | |
1628 FX_FLOAT i; | |
1629 }; | |
1630 | |
1583 #endif | 1631 #endif |
OLD | NEW |