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

Unified Diff: third_party/WebKit/Source/platform/geometry/FloatPoint3D.cpp

Issue 2191233002: Add platform/geometry pretty printers for logging and testing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fewer redundant spaces, more toString tests 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/platform/geometry/FloatPoint3D.cpp
diff --git a/third_party/WebKit/Source/platform/geometry/FloatPoint3D.cpp b/third_party/WebKit/Source/platform/geometry/FloatPoint3D.cpp
index 19dd85be19b5f27fa7318dc0135cb0fdf76a6ef6..b84062783e0f0431e5fd3b8994a907f9752ccd0b 100644
--- a/third_party/WebKit/Source/platform/geometry/FloatPoint3D.cpp
+++ b/third_party/WebKit/Source/platform/geometry/FloatPoint3D.cpp
@@ -22,6 +22,7 @@
#include "platform/geometry/FloatPoint3D.h"
#include "wtf/MathExtras.h"
+#include "wtf/text/WTFString.h"
#include <math.h>
namespace blink {
@@ -51,5 +52,10 @@ float FloatPoint3D::angleBetween(const FloatPoint3D& y) const
return 0;
}
+String FloatPoint3D::toString() const
+{
+ return String::format("%lg,%lg,%lg", x(), y(), z());
+}
+
} // namespace blink
« 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