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

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

Issue 2392543003: reflow comments in platform/geometry (Closed)
Patch Set: Created 4 years, 2 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/FloatPolygon.cpp
diff --git a/third_party/WebKit/Source/platform/geometry/FloatPolygon.cpp b/third_party/WebKit/Source/platform/geometry/FloatPolygon.cpp
index 0cb610ec9ead0d7d2177a477d09b7be67b0ed778..066478853e669ec2fc009680bc064acc80e3c2a1 100644
--- a/third_party/WebKit/Source/platform/geometry/FloatPolygon.cpp
+++ b/third_party/WebKit/Source/platform/geometry/FloatPolygon.cpp
@@ -218,7 +218,8 @@ bool FloatPolygon::contains(const FloatPoint& point) const {
bool VertexPair::intersection(const VertexPair& other,
FloatPoint& point) const {
- // See: http://paulbourke.net/geometry/pointlineplane/, "Intersection point of two lines in 2 dimensions"
+ // See: http://paulbourke.net/geometry/pointlineplane/,
+ // "Intersection point of two lines in 2 dimensions"
const FloatSize& thisDelta = vertex2() - vertex1();
const FloatSize& otherDelta = other.vertex2() - other.vertex1();
@@ -226,9 +227,10 @@ bool VertexPair::intersection(const VertexPair& other,
if (!denominator)
return false;
- // The two line segments: "this" vertex1,vertex2 and "other" vertex1,vertex2, have been defined
- // in parametric form. Each point on the line segment is: vertex1 + u * (vertex2 - vertex1),
- // when 0 <= u <= 1. We're computing the values of u for each line at their intersection point.
+ // The two line segments: "this" vertex1,vertex2 and "other" vertex1,vertex2,
+ // have been defined in parametric form. Each point on the line segment is:
+ // vertex1 + u * (vertex2 - vertex1), when 0 <= u <= 1. We're computing the
+ // values of u for each line at their intersection point.
const FloatSize& vertex1Delta = vertex1() - other.vertex1();
float uThisLine = determinant(otherDelta, vertex1Delta) / denominator;

Powered by Google App Engine
This is Rietveld 408576698