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

Side by Side Diff: third_party/WebKit/Source/platform/geometry/FloatPoint3D.cpp

Issue 2267183003: Switch from PrintTo to operator<< for platform printers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 months 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 /* 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 5
6 This library is free software; you can redistribute it and/or 6 This library is free software; you can redistribute it and/or
7 modify it under the terms of the GNU Library General Public 7 modify it under the terms of the GNU Library General Public
8 License as published by the Free Software Foundation; either 8 License as published by the Free Software Foundation; either
9 version 2 of the License, or (at your option) any later version. 9 version 2 of the License, or (at your option) any later version.
10 10
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 return acos(clampTo(cosAngle, -1.0, 1.0)); 50 return acos(clampTo(cosAngle, -1.0, 1.0));
51 } 51 }
52 return 0; 52 return 0;
53 } 53 }
54 54
55 String FloatPoint3D::toString() const 55 String FloatPoint3D::toString() const
56 { 56 {
57 return String::format("%lg,%lg,%lg", x(), y(), z()); 57 return String::format("%lg,%lg,%lg", x(), y(), z());
58 } 58 }
59 59
60 std::ostream& operator<<(std::ostream& ostream, const FloatPoint3D& point)
61 {
62 return ostream << point.toString();
63 }
64
60 } // namespace blink 65 } // namespace blink
61 66
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/geometry/FloatPoint3D.h ('k') | third_party/WebKit/Source/platform/geometry/FloatQuad.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698