| OLD | NEW |
| 1 /* | 1 /* |
| 2 Copyright (C) 2004, 2005, 2006 Nikolas Zimmermann <wildfox@kde.org> | 2 Copyright (C) 2004, 2005, 2006 Nikolas Zimmermann <wildfox@kde.org> |
| 3 2004, 2005 Rob Buis <buis@kde.org> | 3 2004, 2005 Rob Buis <buis@kde.org> |
| 4 2005 Eric Seidel <eric@webkit.org> | 4 2005 Eric Seidel <eric@webkit.org> |
| 5 2010 Zoltan Herczeg <zherczeg@webkit.org> | 5 2010 Zoltan Herczeg <zherczeg@webkit.org> |
| 6 | 6 |
| 7 This library is free software; you can redistribute it and/or | 7 This library is free software; you can redistribute it and/or |
| 8 modify it under the terms of the GNU Library General Public | 8 modify it under the terms of the GNU Library General Public |
| 9 License as published by the Free Software Foundation; either | 9 License as published by the Free Software Foundation; either |
| 10 version 2 of the License, or (at your option) any later version. | 10 version 2 of the License, or (at your option) any later version. |
| (...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 186 inline FloatPoint3D operator*(const FloatPoint3D& v, float k) | 186 inline FloatPoint3D operator*(const FloatPoint3D& v, float k) |
| 187 { | 187 { |
| 188 return FloatPoint3D(k * v.x(), k * v.y(), k * v.z()); | 188 return FloatPoint3D(k * v.x(), k * v.y(), k * v.z()); |
| 189 } | 189 } |
| 190 | 190 |
| 191 inline float FloatPoint3D::distanceTo(const FloatPoint3D& a) const | 191 inline float FloatPoint3D::distanceTo(const FloatPoint3D& a) const |
| 192 { | 192 { |
| 193 return (*this - a).length(); | 193 return (*this - a).length(); |
| 194 } | 194 } |
| 195 | 195 |
| 196 // Redeclared here to avoid ODR issues. | 196 PLATFORM_EXPORT std::ostream& operator<<(std::ostream&, const FloatPoint3D&); |
| 197 // See platform/testing/GeometryPrinters.h. | |
| 198 void PrintTo(const FloatPoint3D&, std::ostream*); | |
| 199 | 197 |
| 200 } // namespace blink | 198 } // namespace blink |
| 201 | 199 |
| 202 #endif // FloatPoint3D_h | 200 #endif // FloatPoint3D_h |
| OLD | NEW |