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 #include "core/include/fxcrt/fx_basic.h" | 7 #include "core/fxcrt/include/fx_basic.h" |
8 #include "core/include/fxcrt/fx_ext.h" | 8 #include "core/fxcrt/include/fx_ext.h" |
9 | 9 |
10 #include <cctype> | 10 #include <cctype> |
11 | 11 |
12 #if _FXM_PLATFORM_ != _FXM_PLATFORM_WINDOWS_ | 12 #if _FXM_PLATFORM_ != _FXM_PLATFORM_WINDOWS_ |
13 #include <dirent.h> | 13 #include <dirent.h> |
14 #include <sys/types.h> | 14 #include <sys/types.h> |
15 #else | 15 #else |
16 #include <direct.h> | 16 #include <direct.h> |
17 #endif | 17 #endif |
18 | 18 |
(...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
358 d * m.b + e * m.e + f * m.h, d * m.c + e * m.f + f * m.i, | 358 d * m.b + e * m.e + f * m.h, d * m.c + e * m.f + f * m.i, |
359 g * m.a + h * m.d + i * m.g, g * m.b + h * m.e + i * m.h, | 359 g * m.a + h * m.d + i * m.g, g * m.b + h * m.e + i * m.h, |
360 g * m.c + h * m.f + i * m.i); | 360 g * m.c + h * m.f + i * m.i); |
361 } | 361 } |
362 | 362 |
363 CFX_Vector_3by1 CFX_Matrix_3by3::TransformVector(const CFX_Vector_3by1& v) { | 363 CFX_Vector_3by1 CFX_Matrix_3by3::TransformVector(const CFX_Vector_3by1& v) { |
364 return CFX_Vector_3by1(a * v.a + b * v.b + c * v.c, | 364 return CFX_Vector_3by1(a * v.a + b * v.b + c * v.c, |
365 d * v.a + e * v.b + f * v.c, | 365 d * v.a + e * v.b + f * v.c, |
366 g * v.a + h * v.b + i * v.c); | 366 g * v.a + h * v.b + i * v.c); |
367 } | 367 } |
OLD | NEW |